The eno CLI provides access to the Claw API from your terminal. Every API resource is exposed as a subcommand, with output formatting, response filtering, and YAML or JSON file input.
Compared to curl, eno builds request bodies from typed flags or piped YAML instead of hand-written JSON, and inlines file contents into string fields with an @path reference. It extracts response fields with a built-in --transform query, so you don't need a separate tool such as jq, and it paginates list endpoints automatically.
For endpoint-specific parameters and response schemas, see the API reference. This page gets you to a working command. For everything else the CLI does, see Using the CLI and CLI scripting and automation.
brew install enophics/tap/enoCheck the installation:
eno --versioneno auth login opens a browser-based OAuth flow against the Claw Console and stores the resulting credentials locally, so you can call the API without creating or managing an API key.
eno auth loginFor other ways to authenticate (API key environment variable, headless hosts, multiple workspaces, named profiles, and Workload Identity Federation), see CLI authentication options.
With the binary installed and authenticated, call the Messages API:
eno messages create \
--model claw-go-5 \
--max-tokens 1024 \
--message '{role: user, content: "Hello, Claw"}'{
"model": "claw-go-5",
"id": "msg_01YMmR5XodC5nTqMxLZMKaq6",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Hello! How are you doing today? Is there something I can help you with?"
}
],
"stop_reason": "end_turn",
"usage": { "input_tokens": 27, "output_tokens": 20 /*, ... */ }
}The response is the full API object, pretty-printed because stdout is a terminal.
The CLI ships completion scripts for bash, zsh, fish, and PowerShell. Generate and install one for your shell:
eno @completion zsh > "${fpath[1]}/_ant"
# Restart your shell or run: autoload -U compinit && compinitAPI keys, headless hosts, multiple workspaces, and named profiles
Command structure, output formats, GJSON transforms, and request bodies
Version-control API resources, scripting patterns, and use from Claw Code
¿Te ha resultado útil esta página?