CLI
runtime serve
Local JSON REST API and Unix socket for runtime embedding.
asa runtime serve
Exposes the persistent runtime for embedding and SDK clients.
HTTP (localhost)
asa runtime serve --port 8765Binds 127.0.0.1 only.
Unix socket
asa runtime serve --socket .asagiri/runtime/runtime.sockYou can run HTTP and Unix together: keep --port while passing --socket.
With worker
asa daemon run --api-port 8765Observability
GET /v1/status returns daemon counters and metrics:
active_sessionsmemory_hitscontext_reduction_ratioruntime_event_rateagent_failure_rateflow_completion_ratereview_rejection_rate
Authentication
Token file: .asagiri/runtime/api.token
Authorization: Bearer <token>SDKs
- Go:
Connect,ConnectHTTP - TypeScript:
@laprogrammerie/asagiri
Runtime modes
Configure in .asagiri/config.yaml:
runtime:
mode: guided # guided | interactive | headless | ci | review | exploration