Sikaru CLI
Install the Sikaru command-line client, find commands by product, run an agent on Sikaru or your own machine, pick a model per run, upload traces, and enable automatic improvement.
The Sikaru CLI is the command-line client for the Sikaru public API. Commands are grouped by product: call models with inference, answer structured questions with decision, create and run managed agents with agent, evaluate them with eval, upload and read traces with traces, and manage RL environments with environment.
Install
Install script
Windows
npm
npx
Binaries
Install the latest release on macOS or Linux:
It installs sikaru to ~/.sikaru/bin and adds that folder to your PATH.
Discover and validate requests
Sign in with sikaru login: every command works with the sign-in, and if you run a command while signed out at a terminal, the CLI starts the sign-in for you. For servers and CI, set SIKARU_API_KEY instead; it takes precedence over a sign-in. Use --base-url to override the API endpoint. Save a default project with sikaru config set project PROJECT, or pass -p PROJECT to each command. Signed-in inference and decision calls are billed to the saved project.
Every generated API operation also stays callable under its product for scripting, hidden from help. For example, sikaru agent runs get and sikaru agent execution-sessions create. Discover commands and request fields with help or machine-readable schemas:
Mutation requests are not automatically retried.
Continue with CLI automation for detailed usage.
Run an agent
With a task, the command runs once and prints the result. Without a task in a terminal, it opens a conversation; each message continues the same session. Piped input and --format json run one task and print one JSON result. The exit code is the outcome: 0 completed, 1 failed, 2 approval required, 3 cancelled, 4 recovery required, 5 paused for funding. A paused run keeps its work; the result’s next field gives the sikaru agent runs resume command to run once billing allows. Pauses that clear on their own, such as a temporary spending check, do not stop the command.
When the organization is out of credits, an agent can add them itself: sikaru credits add --amount 20 creates a top-up offer whose pay URL an agent wallet pays, and next lists that command first. See Agent credit top-ups.
See Local compute for resuming, approvals and cleanup.
Answer questions with System One
sikaru decision infer asks System One choice, yes-or-no (noul) and score questions about a text or JSON state, and prints each answer with its confidence.
For choice and score questions, pass a JSON file of named questions:
Add --json to parse the state as JSON, or omit the state to read it from stdin. A question the model could not answer is listed as no answer.
Select a model for one run
Add --model MODEL_ID (or -m), using an ID from your project catalog, to sikaru agent run. This pins the selected model for that session without changing the project default. Omit the flag to use the project default. Unknown model IDs are rejected before run creation. Provider URLs and credentials stay service-managed.
List catalog choices and the current project default with:
Per-run selection requires a service deployment that supports the model request field. Existing execution sessions keep their previously selected model.
See Models and output for catalog discovery, reasoning controls, and structured responses.
Upload traces
sikaru traces upload sends a JSON or JSONL trace file and works out its format from the rows. OTLP resourceSpans, ATIF trajectories and OpenInference spans are sent as they are. A Langfuse, LangSmith or Braintrust export is uploaded unchanged, and Sikaru turns each trace into a trajectory:
Large exports go in batches that never split a trace. A file must hold one format. See Trace ingestion for what each export becomes.
Turn on automatic harness improvement
Add --auto-improve when you start a run:
Or enable it for the turns of a new session:
Only evaluated improvements can become active. Running sessions keep their pinned release; start a new session to use an approved release. A job that requires review pauses further automatic campaigns for that agent. Inspect progress with:
