Save code snippets with tags, search instantly, share links to teammates. The private Gist you can run yourself. Never lose a useful snippet in Slack history again.
An agency managing snippets for multiple clients runs one Codex instance per client on isolated VMs. Each instance gets its own data directory. There is no shared database, no multi-tenant risk, no worry about one client's data appearing in another client's export.
Teams outgrow spreadsheet-based snippets tracking around the same time they realize SaaS alternatives want $15 to $50 per seat per month. Codex is a single binary that handles the same job without the recurring bill or the vendor dependency.
GET /api/snippets — List all snippets. Supports ?q=keyword for search and ?status=value for filteringPOST /api/snippets — Create a new snippet. Send JSON with at least titleGET /api/snippets/{id} — Fetch one snippet by IDPUT /api/snippets/{id} — Update fields on an existing snippetDELETE /api/snippets/{id} — Remove a snippetGET /api/stats — Returns total count and breakdown by statusGET /api/health — Returns {"status":"ok"} for uptime monitoringOn first launch, Codex initializes a WAL-mode SQLite database and starts an HTTP server. The web dashboard and API share the same port. Creating a snippet is a POST with JSON — the only required field is title. The response includes the generated ID and timestamp. Listing supports search, filtering, and returns items in reverse chronological order.
Self-hosted code snippet manager. Self-hosted on your infrastructure. Your data never leaves your server.
curl -fsSL https://stockyard.dev/install.sh | sh -s -- --tool codex
PORT=8650 ./codex
http://localhost:8650
Single binary. Embedded SQLite. No Docker. No database. No dependencies.
Your license key arrives by email within 5 minutes of checkout. Set it as an environment variable and restart the binary.
export CODEX_LICENSE_KEY=stockyard_xxxxxxxxxxxxxxxxxxxx ./codex
No cloud connectivity required. The binary validates the key offline with Ed25519 signatures.