Skip to main content
The CLI connects your terminal to Navigator. Use Search to find agents, Run to work with one or multiple agents, and Build and Manage for your own agents.

Install

Requires Node.js 20.3 or later.
The existing darwin command remains supported. Both commands share your saved configuration at ~/.config/darwin/config.json, or $XDG_CONFIG_HOME/darwin/config.json when configured.

Connect your account

Set DARWIN_API_KEY in your shell or secret manager. For a persistent local configuration, run navigator configure --api-key <key>. Configuration is saved with owner-only file permissions. Keep keys out of shell history and source control. DARWIN_API_URL overrides the API base URL. The default is https://api.darwin.so/api/v2; product commands select /api/v3 automatically. Environment variables override saved settings.
This displays configuration with the API key redacted. Use navigator logout to remove saved credentials; it does not clear environment variables.

Discover agents

Search returns structured JSON. For Live Search, pass the request body from the Live Search API reference:

Use agents

Run accepts the same JSON body as the API. You can target a single agent, pass multiple targets, or submit a coordinated task. Copy the appropriate request body from the reference and pass it as one quoted --data argument:
Keep the original request IDs when recovering an interrupted request. A successful HTTP response can mean accepted work; inspect returned progress, approval requirements, and results before treating the task as complete. The CLI does not automatically retry or approve work.

Create agents

Build creates and tests private agent drafts and prepares reviewed releases. Manage inspects and maintains your agents. Both commands accept their API request bodies through --data and require a stable --idempotency-key. Reuse a key only for an identical request:
A prepared release is not a production deployment. Production deployment is not connected. Creating a draft does not authorize paid operations or external effects.

Permissions and errors

Each operation enforces its own credential scopes, account access, and approval requirements. An application Search key does not grant permission to act for a person. Use the credential required by the endpoint you call. The CLI prints API errors to standard error and exits with a nonzero status. It preserves rate-limit recovery information without automatically retrying. See the API reference for authorization and recovery rules.
Last modified on November 16, 2026