Skip to navigation

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.

View as Markdown

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 the latest release on macOS or Linux:

curl -fsSL https://app.sikaru.ai/install.sh | sh

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.

ProductCommon commands
sikaru inferencechat, models
sikaru decisioninfer
sikaru agentrun, list, get, create, pull, push, validate, review, publish, logs, stop
sikaru evalrun, list, get, samples, logs, stop
sikaru tracesupload, get
sikaru environmentlist, info, push, pull

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:

sikaru --help
sikaru agent --help
sikaru agent run --help
sikaru agent runs start --schema
OptionPurpose
--helpShow an operation’s required fields.
--schemaPrint the machine-readable request schema.
--dry-runValidate a request without sending it.
--format jsonStructured output for scripts.

Mutation requests are not automatically retried.

Continue with CLI automation for detailed usage.

Run an agent

sikaru agent run AGENT -p PROJECT "Review this project"

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.

FlagWhere the agent’s tools run
--compute managed (default)In a Sikaru-managed sandbox.
--compute localIn your workspace (-C DIR, default the current directory), with your OS permissions.

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.

sikaru decision infer "I was charged twice. Please fix this ASAP." \
--noul urgent="Is this urgent?" --noul refund="Does the customer want a refund?"

For choice and score questions, pass a JSON file of named questions:

questions.json
{
"category": {"type": "choice", "instructions": "What is this ticket about?",
"criteria": {"billing": null, "technical": null, "other": null}},
"severity": {"type": "score", "instructions": "How severe is it?", "criteria": ["low", "medium", "high"]}
}
sikaru decision infer "I was charged twice." --questions questions.json -o json

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:

sikaru inference model-settings get_model_settings --project-id "$PROJECT_ID"

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:

sikaru traces upload -p PROJECT langsmith-runs.jsonl

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:

sikaru agent runs start --project-id PROJECT --harness-id AGENT \
--tenant-id TENANT --user-id USER --input '{"goal":"Complete the task"}' \
--product-context '{}' --policy '{}' --auto-improve

Or enable it for the turns of a new session:

sikaru agent execution-sessions create --project-id PROJECT --harness-id AGENT \
--tenant-id TENANT --user-id USER --auto-improve
FactDetail
DefaultOff. --auto-improve=false explicitly disables it at startup.
Requiresruns:create, harness:write, and an agent configured for improvement.
When it runsAfter completed turns’ evidence is graded and the configured evaluation cases are ready. Work continues when the CLI exits.
CostImprovement uses additional model and evaluation compute.
ServiceMust support automatic improvement and have its learning worker enabled. This flag does not run an optimizer on your computer.

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:

sikaru agent harnesses list_improvements --project-id PROJECT --harness-id AGENT

Next steps