Safety and privacy

Is Agent Tank safe to run?

Agent Tank runs on your machine and reads usage from the coding agent CLIs you already have installed and logged in. It starts each CLI locally, runs its built-in usage command and parses the output. It does not scrape provider websites, read browser cookies, depend on a logged-in browser session, MITM or inspect your network traffic, or send your usage data to a remote service.

The dashboard and API listen on 127.0.0.1:3456, plus the Docker bridge when Docker is available. Authentication is off by default, so anything that can reach the port can read your usage and trigger refreshes. Turn on authentication before you bind any other address.

Does any of my data leave my machine?

Agent Tank has no telemetry and sends no usage data, account details or credentials to its authors or any third party. Usage is read from the local CLIs and served from your machine. The one exception for credentials is the opt-in Claude API mode, which sends the Claude CLI’s existing OAuth credentials to Anthropic. These are all of the network requests involved:

  • The CLIs themselves. When Agent Tank runs a CLI’s usage command, that CLI asks its own provider for your limits, exactly as it does when you run the command yourself.
  • Provider status badge. On every full refresh, Agent Tank fetches the public status pages of the providers you monitor for the dashboard’s status badge: Anthropic’s and OpenAI’s status pages and Google’s public incident feed (src/public-status.js). These are plain public reads: no account data or credentials are sent.
  • Claude API mode (opt-in). With --claude-api, Agent Tank calls Anthropic’s own usage endpoint, https://api.anthropic.com/api/oauth/usage, with the OAuth credentials the Claude CLI already uses, and renews an expired token with Anthropic’s OAuth token endpoint. That is the same provider the CLI talks to.
  • Dashboard fonts. The built-in dashboard page loads its Inter and JetBrains Mono fonts from Google Fonts in your browser.

Usage history is a SQLite file on your disk (~/.agent-tank/history.db).

Does Agent Tank read or store my credentials?

By default it does not touch them: each CLI uses its own login, and Agent Tank only reads what the CLI prints. With several accounts, Agent Tank passes each account’s config directory to its CLI (for example as CLAUDE_CONFIG_DIR) and never opens the files in it.

The exception is the opt-in Claude API mode (--claude-api). It reads the OAuth token Claude Code already uses, from CLAUDE_CODE_OAUTH_TOKEN, ~/.claude/.credentials.json (or the account’s config directory), the macOS Keychain or Linux secret-tool, and sends it only to Anthropic. When it renews an expired token that came from the credentials file, it writes the new token back to that same file, as Claude Code does. Agent Tank keeps no copy anywhere else; its history database holds usage percentages only.

Does checking usage send prompts to the models?

No. Agent Tank never types a prompt, so nothing is sent to a model. It only sends each CLI’s built-in commands: /usage for Claude and Antigravity, /status once for Claude’s model and account details, and for Codex the JSON-RPC account/rateLimits/read call with /status as the fallback. Session keepalive presses Escape in the open session or runs /status in a fresh process.

Apart from that it only answers screens that would block the command: it presses Escape to close dialogs, accepts the folder-trust prompt for /tmp (where it starts the CLIs) and skips Codex’s update notice.

Is it open source?

Yes. Agent Tank is MIT-licensed and the full source is at github.com/integry/agent-tank, so you can check every request described here yourself. Version 0.10.0 is the v0.10.0 tag, and it is published to npm as agent-tank.

Setup and platforms

Which operating systems are supported?

Linux, macOS and Windows: Agent Tank is a Node.js package and runs wherever Node.js 18+ and its native node-pty dependency build. npm install compiles node-pty, which needs Python 3.8+, C/C++ build tools, and Node.js development headers. The README’s per-OS notes:

  • Ubuntu / Debian: sudo apt-get install python3.11 python3.11-dev build-essential nodejs-dev
  • Fedora / RHEL / CentOS: sudo dnf install python3.11 python3.11-devel gcc gcc-c++ make nodejs-devel
  • openSUSE: sudo zypper install python311 python311-devel gcc gcc-c++ make nodejs20-devel
  • macOS: xcode-select --install and brew install [email protected]
  • Windows: Python 3.11+ and Visual Studio Build Tools

See Build requirements if npm install fails with gyp ERR!.

Which coding agents are supported?

Claude Code (claude), OpenAI Codex (codex), and Antigravity CLI (agy). Agent Tank auto-discovers every supported CLI on your PATH, or you can pick some with --claude, --codex, and --agy. Each CLI must be installed and logged in on its own first.

Does it work with API keys or pay-as-you-go billing?

No. Agent Tank is for subscription coding agents whose CLI reports session or limit information, such as Claude Code Pro / Max, ChatGPT Codex with supported plans, or Antigravity CLI with supported subscription plans. It does not track pay-as-you-go API key billing or the cost of API requests; use the provider’s billing tools for that.

Do I need Docker?

No. Agent Tank runs directly on your machine with Node.js. When you do not pass --host and a Docker bridge network is available, it also binds the bridge gateway addresses so containers on the same host can reach it. Without Docker it simply listens on 127.0.0.1, and --no-docker turns the bridge binding off.

Which Node.js version do I need?

Node.js 18+. Usage history needs Node.js 22.5+ for the built-in node:sqlite; on older versions Agent Tank logs one warning at startup and runs without history.

Usage and data

How often does it refresh?

In the default activity mode Agent Tank watches the CLIs’ local directories and refreshes after you use one; if it finds none, it falls back to interval mode, which refreshes every 60 seconds by default. none refreshes only when you ask: the dashboard’s refresh button, POST /refresh or POST /refresh/:id. A per-account cooldown of 30 seconds applies to manual, startup and activity refreshes. See Refresh options.

Where is history stored and for how long?

In a local SQLite file, ~/.agent-tank/history.db, one row per metric per refresh. Rows older than 14 days are deleted. Change that with --history-retention-days, move the file with --history-db, or turn recording off with --no-history (History options). History from 0.9.x (history.json) is not migrated.

Can I monitor several accounts of the same provider?

Yes. Repeat --agent provider:alias=config-path once per account, or list them in the config file’s agents array. Each account has its own config directory, dashboard card, history and /status/:id. See Multiple accounts per provider.

Why is context_window or plan null?

context_window needs the model the CLI is using. It is null when the CLI did not report a model (check raw.metadata.model) or the model is not in Agent Tank’s built-in table. Add a size with the contextWindows config key, for example { "contextWindows": { "gemini-4-argon": 1048576 } }. Codex reports its own context window only while it has an active session, so it is often null.

plan is null when the CLI does not show one, such as an Antigravity account without a plan next to its email.

Can I reach it from containers or other machines?

Containers on the same host: yes, by default. Agent Tank also binds the Docker bridge gateway addresses, so a container can call http://host.docker.internal:3456/status (on Linux, start it with --add-host=host.docker.internal:host-gateway) without the API being exposed publicly. See Agents in local containers.

Other machines: bind another address with --host (for example --host 0.0.0.0) and turn on authentication with --auth-token or --auth-user and --auth-pass. The server speaks plain HTTP and authentication is off by default, so without it anyone who can reach the port can read your usage and trigger refreshes. Only do this on a network you trust.

Building on Agent Tank

Can I use the API in my own app?

Yes. Agent Tank is MIT-licensed, and its local JSON API at http://127.0.0.1:3456 returns one canonical shape for every provider. Every response allows cross-origin requests (Access-Control-Allow-Origin: *), so a browser page can call it too. For scripts there is agent-tank --once --json, and Node.js apps can use the AgentTank class. Start with the API reference and Use cases.

What changed in 0.10.0 for API users?

GET /status, GET /status/:id, both refresh endpoints and GET /history/:id return new shapes: a providers list of canonical provider objects, with the old per-provider payload kept under raw. History moved to SQLite and starts empty. See Upgrading from 0.9.x.

What happens when Agent Tank is not running?

Requests to its port fail with a connection error. Your integration should expect that: set a short timeout and fall back to a neutral state rather than failing. Each of the integration examples does this; the status bar scripts print tank off, for example. Scripts that need data without a running server can use agent-tank --once --json.

Still stuck?

Check Troubleshooting first. If your question is not answered there, open an issue on GitHub or ask on r/agenttank.