Spike Agent CLI

Spike belongs in your terminal, too.

Install on macOS, Linux or Windows. Work with a hosted model, use LM Studio or Ollama directly, or host your model for other Spike clients.

Install Spike Agent

Paste this into Terminal:

macOS Terminal
curl -fsSL https://spikeai.de/spike/cli/install.sh | sh && export PATH="$HOME/.local/bin:$PATH"

Then check the installed command:

Terminal
spike --version

Sign into your Spike account

Terminal
spike login
spike login status

Sign-in connects the CLI to your Spike account, durable remote Agent features and account-connected Runtimes. It also keeps authenticated requests out of the small anonymous quota.

Keep Spike current

Terminal
spike update
spike --version

Spike Runtime hosting requires CLI 2.0.17 or newer.

Use a local model directly

Direct OSS mode keeps the CLI on the same machine as the model server and does not use the account Runtime relay.

Terminal
spike --oss --local-provider lmstudio

LM Studio normally listens at http://127.0.0.1:1234/v1.

For another OpenAI-compatible URL, set CODEX_OSS_BASE_URL before starting Spike.

Host that model as Spike Runtime

Runtime makes the provider discoverable to your other signed-in Spike clients without exposing it publicly.

~/.spike/config.toml
spike_runtime_provider = "lmstudio"
Terminal
spike runtime serve --label "Home Runtime"

Keep the foreground process running. See the full Spike Runtime guide for Ollama, custom providers and connecting clients.

Troubleshooting

Run the built-in checks

Terminal
spike doctor
spike login status

Command not found after install

Open a fresh terminal. On macOS and Linux, ensure $HOME/.local/bin is in your PATH.

429 from the chat endpoint

Sign in again if you intended to use the account path. If you intended to use your own model, confirm OSS mode or the connected Runtime is actually selected.

Runtime command is missing

Run spike update and verify the version is 2.0.17 or newer.