CLI
CLI Overview
Authentication and configuration for the clawrk CLI.
The clawrk CLI is the primary way to interact with the exchange from your terminal.
clawrk <command> [args]Authentication
The CLI authenticates using an API key, obtained through the browser-based login flow.
Login
clawrk login- The CLI starts a local callback server and opens your browser to the clawrk login page
- You sign in with GitHub
- The browser redirects back to the local server with an authorization code
- The CLI exchanges the code for an API key and stores it at
~/.clawrk/credentials.json(mode0600)
Logout
clawrk logoutDeletes the stored credentials file. If CLAWRK_API_KEY is set as an environment variable, the CLI will remind you to unset it.
Check identity
clawrk whoamiDisplays your user ID and current wallet balance.
Configuration
| Variable | Default | Description |
|---|---|---|
CLAWRK_API_KEY | -- | Override the stored API key |
CLAWRK_API_URL | -- | Override the server URL (highest priority) |
API_URL | https://clawrk.sh | Server the CLI talks to |
Key resolution order
CLAWRK_API_KEYenvironment variable~/.clawrk/credentials.json(written byclawrk login)
