PRIVATEBIN.CONF(5)
π privatebin.conf β the manual page, but make it a group chat π
okay so bestie, welcome to privatebin.conf (section 5 of the Privatebin Manual) β this is the lil config file that the privatebin CLI reads to know where to put your pastes. pull up a chair, we're doing this together π«Ά
β¨ NAME β¨
privatebin.conf β the privatebin CLI configuration file. that's it, that's the name π
πΈ DESCRIPTION πΈ
so basically, the privatebin(1) command line interface creates pastes to a PrivateBin instance β and which instance? the one you configured in the config.json. that's the whole vibe. no config, no paste, periodt β¨
π FORMAT π
π Top level object keys:
these are the big-girl settings that live at the very top of your config file π
open-discussion(bool, default:false) β the default value of open discussion for a paste.burn-after-reading(bool, default:false) β the default value of burn after reading for a paste. π₯ poof, gone.formatter(string, default:"plaintext") β the default formatter for a paste.expire(string, default:"1day") β the default time to live for a paste. clock's ticking bestie β³gzip(bool, default:false) β enable GZip the paste data. squeeze it, compress it, slay.skip-tls-verify(bool, default:false) β skip TLS certificate verification when connecting to the privatebin instance.proxy(string) β proxy URL to use for all requests. supports HTTP, HTTPS, and SOCKS5 schemes (e.g."socks5://127.0.0.1:9050"for TOR). when set, it overrides theHTTP_PROXY,HTTPS_PROXY, andALL_PROXYenvironment variables. can be overridden per-bin or by the--proxyCLI flag. so many layers of override, it's giving inheritance hierarchy πextra-header-fields(object<string, string>) β the extra HTTP header fields to include in the request sent.bin(array<bin>) β the list of bin instances. plural. a whole roster. main character energy for each one π
π¦ The bin object format:
each bin instance is its own lil world, with its own rules πͺ©
name(string) β the name of the bin instance.host(string) β the url of the bin instance.auth(auth) β the basic auth configuration of the bin instance.expire(string) β the default time to live for a paste.open-discussion(bool) β the default value of open discussion for a paste.burn-after-reading(bool) β the default value of burn after reading for a paste.formatter(string) β the formatter for the paste.gzip(bool) β GZip the paste data.skip-tls-verify(bool) β skip TLS certificate verification when connecting to the privatebin instance.proxy(string) β proxy URL to use for requests to this bin instance. supports HTTP, HTTPS, and SOCKS5 schemes. overrides the top-levelproxyvalue and the proxy environment variables. can be overridden by the--proxyCLI flag.extra-header-fields(object<string, string>) β the extra HTTP header fields to include in the request sent.
π§ The auth object format:
the secret lil corner where your login lives, be normal about it π€«
username(string) β the basic auth username.password(string) β the basic auth password.
π EXAMPLES π
β Minimal privatebin configuration file:
{
"bin": [
{
"name": "", // default
"host": "https://privatebin.net"
}
]
}
πΈ A bit more complete configuration file:
{
"bin": [
{
"name": "example",
"host": "bin.example.com",
"auth": {
"username": "john.doe",
"password": "s$cr$t"
},
"formatter": "markdown",
"burn-after-reading": false
},
{
"name": "",
"host": "https://privatebin.net"
"extra-header-fields": {
"Foo": "Bar",
},
},
],
"burn-after-reading": true
}
π₯ Configuration using a SOCKS5 proxy (e.g. TOR):
{
"proxy": "socks5://127.0.0.1:9050",
"bin": [
{
"name": "",
"host": "https://privatebin.net"
}
]
}
π FILES π
the CLI goes looking for your config file in these locations, in order, and uses the first one it finds. it's not indecisive, it's efficient π
$HOME/.config/privatebin/config.json$XDG_CONFIG_HOME/privatebin/config.json(ifXDG_CONFIG_HOMEis set)- The platform-native user configuration directory (as returned by Go's
os.UserConfigDir):HOME/.config_*_onLinux,_*HOME/Library/Application Support on macOS, %AppData% on Windows - Each directory in
$XDG_CONFIG_DIRS(defaults to/etc/xdg)
duplicate paths are skipped, no double-dipping π
when no--configflag is provided and no file is found, the CLI falls back to sensible defaults:expire: 1day,formatter: plaintext,gzip: enabled. and theprivatebin initcommand writes to the first candidate path by default. so if you ever wondered where init is putting stuff β it's path number one bestie π
π«Ά AUTHORS π«Ά
Bryan Frimin.
and that's the whole page!! this was privatebin.conf(5) from the Privatebin Manual, version 2.2.1, dated Feb 15, 2026 β go forth and configure your bins, you absolute icon πβ¨
π¦ where this page comes from
- ubuntu resolute: privatebin-cli 2.2.1-1 Β· ISC
- ubuntu stonking: privatebin-cli 2.2.1-1 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms