Ghostbit CLI — create end-to-end encrypted pastes from the terminal
Project description
Ghostbit CLI
Command-line tool for Ghostbit — a self-hosted, end-to-end encrypted paste service.
All content is encrypted in the client before being sent to the server. The server never sees your plaintext.
Install
pip install ghostbit-cli
Usage
# Paste from stdin
cat file.py | gb
# Paste a file (language auto-detected from extension)
gb file.py
# With options
gb file.py --lang python --burn --expires 3600
# Password-protected paste
echo "secret" | gb --password mysecret
# Output JSON (includes full URL with decryption key)
cat data.json | gb --json
# Point to your self-hosted instance
gb config set server https://paste.example.com
Options
| Flag | Short | Description |
|---|---|---|
--lang |
-l |
Language hint (python, go, rust, …) |
--expires |
-e |
TTL in seconds (3600 = 1h, 86400 = 1d) |
--burn |
-b |
Delete after the first view |
--max-views |
-m |
Delete after N views |
--password |
-p |
Encrypt with a password |
--server |
-s |
Override server URL for this call |
--quiet |
-q |
Print URL only |
--json |
Print full JSON response |
Configuration
gb config set server https://paste.example.com
gb config show
gb config unset server
Config is stored at ~/.config/ghostbit.toml.
Self-hosting
See the Ghostbit server repository for Docker and manual setup instructions.
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ghostbit_cli-1.0.0.tar.gz.
File metadata
- Download URL: ghostbit_cli-1.0.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29f1cbb9d9d4bc70f7194ab01803f7644598ce1d2f4b3dec900cab21d983ceed
|
|
| MD5 |
2e0b0c48d56e5d60769bf2c9b008b40a
|
|
| BLAKE2b-256 |
e0d7b60e8521939fe4bc2004a7790426480c68602854b747af13c05555153e52
|
Provenance
The following attestation bundles were made for ghostbit_cli-1.0.0.tar.gz:
Publisher:
release.yml on stackopshq/ghostbit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ghostbit_cli-1.0.0.tar.gz -
Subject digest:
29f1cbb9d9d4bc70f7194ab01803f7644598ce1d2f4b3dec900cab21d983ceed - Sigstore transparency entry: 1280185636
- Sigstore integration time:
-
Permalink:
stackopshq/ghostbit@bdbebac0cce6677596d02a473be9c7ea903b44a7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/stackopshq
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bdbebac0cce6677596d02a473be9c7ea903b44a7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ghostbit_cli-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ghostbit_cli-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
118f98ce420fceae11b2d8651d343293b7bb0ea47faf76be3dd07aac49d9aea8
|
|
| MD5 |
1d09530de93cda70c27c7606be5389a9
|
|
| BLAKE2b-256 |
577c2d8ee251e1bcdefc56d649f2c36748f8967a98e67a90384d26f39ef6259e
|
Provenance
The following attestation bundles were made for ghostbit_cli-1.0.0-py3-none-any.whl:
Publisher:
release.yml on stackopshq/ghostbit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ghostbit_cli-1.0.0-py3-none-any.whl -
Subject digest:
118f98ce420fceae11b2d8651d343293b7bb0ea47faf76be3dd07aac49d9aea8 - Sigstore transparency entry: 1280185644
- Sigstore integration time:
-
Permalink:
stackopshq/ghostbit@bdbebac0cce6677596d02a473be9c7ea903b44a7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/stackopshq
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bdbebac0cce6677596d02a473be9c7ea903b44a7 -
Trigger Event:
push
-
Statement type: