The Octospark CLI is an agent-friendly command line client over the Octospark API gateway. It uses the same public surface as the SDKs and MCP tools, so product operations stay behind the API instead of calling social, storage, or billing providers directly.

Install

You can also run it without installing:
The package installs a single octospark binary. It defaults to the production API.

Authentication

Create an API key in Octospark from Organization settings - API Keys. Use it as a bearer token:
For interactive terminal use, you can also sign in with Device Authorization Flow:
octospark login starts Device Authorization Flow and stores a local auth profile at ~/.octospark/auth.json with owner-only permissions. Later commands reuse that profile automatically.

Environments

The CLI defaults to the production API. Use OCTOSPARK_API_URL or --api-url to target another environment.

Common Commands

Agent-Friendly Output

Use --json for a stable command envelope:
Use --fields to keep responses compact:
Use --request @payload.json for larger requests:

Safety

Mutating commands and paid-read operations should be previewed with --dry-run first. Run the final command with --yes only after reviewing the plan or cost estimate.

Surface Discovery

The CLI can inspect the generated API-backed surface used by CLI and MCP:

Agent Skills

Install bundled Codex or Claude Code skills: