Local compute
Run a hosted Sikaru agent against a directory on your own macOS or Linux machine with the native sikaru binary. Orchestration stays hosted; admitted operations run on your machine.
Install the Sikaru CLI with curl -fsSL https://app.sikaru.ai/install.sh | sh or npm install -g @aadi-labs/sikaru-cli. This workflow requires no Python companion or provider registration.
Run a task
--prompt-file /absolute/task.txtreads the task from a file;-reads it from stdin.- Without a task in a terminal, the command opens a conversation. Each message continues the same session.
- A fresh invocation creates a fresh execution session, attachment and local state identity.
- Caller files stay in place.
- With
--format jsonor piped output, the final stdout is one JSON object; progress uses stderr. usage.available: falsemeans cost/usage was not supplied, not zero cost.
Inspect status, cleanup and cancel_acknowledged separately. A completed run can still require cleanup. SIGINT/SIGTERM request cancellation and await owned process cleanup; a machine crash or SIGKILL cannot provide that proof.
Continue and approve
Name the original agent, and use the exact state_dir returned by the original command and the original physical workspace.
Default headless behavior parks on approval. Controllers approve through ordinary generated run operations; executor credentials cannot approve.
Approval waiting does not suspend lease renewal or cancellation.
Reconnect and restart
Transport reconnect keeps the process identity and immutable receipts. Process restart requires confirmed teardown and a new claim/epoch/credential; --resume performs this only when original workspace and journal evidence permit it.
Unknown effects are never rerun automatically. Preserve evidence, explicitly abandon uncertain attachments through the controller API, and use fresh workspace provenance only after teardown is confirmed.
Your own container
Sikaru runs no customer compute workers or launchers. To keep tools inside a container you control, install the same binary in the container, give it a project API key, and run sikaru agent run --compute local there with the container’s directory as the workspace.
A controller can still drive the lifecycle directly: create an execution session and environment, bind an attachment, and issue an attachment credential through the generated compute-environments, compute-attachments, compute-credentials and compute-operations operations. They are callable under sikaru agent but hidden from its help; use each command’s --help and --schema for the request fields. Session turns still require the admitted compute.execute capability; environment selection grants no additional authority.
Never put credentials in command arguments. Executor credentials cover one attachment and cannot read project-wide runs.
Files, authority and readiness
The hosted harness, private instructions and model credentials stay with Sikaru. Task inputs and outputs needed for reasoning reach Sikaru; customer files stay on the execution host unless explicitly exported.
The directory is a working directory, not an isolation boundary. Local execution trusts the account and host; use your own container/account boundary when isolation is required. Task environments omit inherited SIKARU_* variables.
Local tools run as the same OS user as the CLI. Tool subprocesses get a cleared environment, but the CLI’s stored sign-in in the operating-system keyring stays readable by that user, so a prompt-injected tool call could read it. Run untrusted tasks in a container or separate account that holds only a project API key.
Agents whose release carries a custom executable behavior package, or pins a non-local execution provider, are refused local compute. agent run --compute local reports the refusal as the run’s failure; run those agents managed instead.
Task IO starts after readiness, workspace verification and authority checks.
- The startup bound is 180 seconds.
- Ready/heartbeat acknowledgments renew a 60-second lease with a conservative local deadline. Polling and credential renewal never extend that lease.
- Empty work is not completion.
- Idle polling honors bounded server hints; signal, lease and overall deadlines remain independently active.
- Disconnected executors stop before their local lease expires.
- Journals preserve intent and immutable receipts, never credentials or permission to replay unknown shell effects.
- Hosted snapshots do not restore customer files.
