Thirdfy Agent CLI

Run Thirdfy actions from your terminal, scripts and CI with thirdfy-agent. Sign in by email, find actions, run them, and read JSON results.

thirdfy-agent lets you run Thirdfy actions from your terminal, a script, a cron job or CI. Add --json to any command and it prints a stable JSON envelope your code can read.

These docs match CLI 0.5.1.

Your first session

# 1. Install (Node.js 20 or later)
npm install -g @thirdfy/agent-cli

# 2. Sign in by email: send the code, then verify it
thirdfy-agent login email you@example.com --json
thirdfy-agent login email you@example.com --code "<otp>" --accept-terms --key-name "My Agent" --json

# 3. See what your agent can call
thirdfy-agent actions --provider openmarket --json

# 4. Run a read
thirdfy-agent run --action get_openmarket_btc_funding --provider openmarket --json

# 5. Check who you are and which wallets you have
thirdfy-agent whoami --json

Step 2 does the setup for you. It creates your owner session, an agent API key and your execution wallets (the wallets your agent acts from). It saves them in ~/.thirdfy/config.json.

New profiles use runMode=agent_wallet by default, so you can run actions right away.

Step 4 returns the reading inside the JSON envelope. Here is a trimmed response from a real run on 2026-10-08:

{
  "success": true,
  "code": "WALLET_EXECUTED",
  "data": {
    "data": {
      "result": {
        "success": true,
        "data": {
          "typed": { "latestRate": 0.0001 },
          "parseIssues": [],
          "freshness": { "fetchedAt": "2026-10-08T14:22:59.180Z", "ttlMs": 300000, "cacheHit": false },
          "attribution": "Data: OpenMarket"
        },
        "summary": "OpenMarket read get_openmarket_btc_funding: typed reading."
      }
    }
  }
}

Before your first trade

A trade moves real funds, so check the venue first.

  1. Check the venue. Run thirdfy-agent venue readiness hyperliquid --json. It lists anything that blocks you (blockingReasons) and the next step.
  2. Clear the blockers. Usually this means funding the venue. thirdfy-agent venue fund hyperliquid --json returns a funding plan. Nothing moves until you send each step as a write with run. The one-time venue setup runs by itself with your first order. See the venue's integration page.
  3. Preview, then run. thirdfy-agent preview tells you whether Thirdfy would sign the write, without sending it. Then run it: Run & status.

Chains

Run thirdfy-agent chains --json to list the chains Thirdfy acts on, with their chain ids and execution lanes (how Thirdfy runs actions on each chain).

Most actions use Base when you pass no --chain-id. Solana (chain 101) works only with agent_wallet, on your agent's managed Solana wallet. See Solana.

Guides

TopicPage
Install, upgrade and CIInstall
Email sign-in, keys and execution-only modeAuthentication
Find actions and check a write before you run itActions & preflight
Run reads and writes, poll statusRun & status
Delegation and JSON for automationDelegation & machine output
Run it inside Hermes or OpenClawHermes and OpenClaw
Every command and flagCLI command reference

CLI or MCP

Use the CLI in shells, scripts and CI. If your agent runs in Claude, Claude Code, Cursor, OpenAI or Grok, connect Thirdfy MCP instead.

Both reach the same action catalog and run the same checks. The same agent key works in both.