A CLI tool and self-hostable server for sharing code snippets and files with optional encryption.
Requires Go 1.24+.
make all # Builds 'codesfer' (CLI) and 'codeserver' (Server) to ./build/Or install from releases.
codesfer auth(Register, Login, Logout)codesfer account(View profile)
- Push:
codesfer push <file> [-k alias] [-d desc] [--pass password] - Pull:
codesfer pull <code|alias> [-o out_dir] [--pass password] - Manage:
codesfer list/remove <code|alias>
codesfer list will also show URL which can be downloaded with direct wget or curl
codesfer config set|get <key> [value]
Run codeserver serve --port 3000.
Run codeserver init to generate a .env file.
DB_SOURCE: Auth DB path.INDEX_DB_SOURCE: File index path.OBJECT_BACKEND_DRIVER:sqlite(local) orr2(Cloudflare).OBJECT_STORAGE_SOURCE: Path for SQLite storage.- R2 Config:
CF_ACCOUNT_ID,CF_ACCESS_KEY,CF_SECRET_ACCESS_KEY,CF_BUCKET.