npx without prior installation.
GitHub repository
npm package
Capabilities
- Retrieve API metrics with various aggregation options and filters
- Retrieve request logs with filters and field selection, including headers and payloads
- Fetch full details about specific API requests, including application logs and traces
- Load data into a local DuckDB database and run arbitrary SQL queries against it
- List apps, consumers, and endpoints in your team
Agent skill
The skill bundles instructions and reference material that allow agents to use the CLI efficiently, without digging through documentation or--help text on every invocation.
It includes guidance on key concepts, an investigation workflow, a full command reference, and the schemas of the DuckDB tables the CLI writes to.
It follows the open Agent Skills standard and works with Claude Code, Cursor, Codex, and other compatible agents.
The skill lives alongside the CLI in the GitHub repository.
Installation
For agents
Install theapitally-cli skill using the skills CLI:
npx, so it doesn’t need to be installed separately.
For humans
The CLI can be used vianpx, no installation required:
apitally binary directly, install it with the standalone installer:
Authentication
The CLI uses the Apitally API under the hood and therefore requires a team-scoped API key. Authenticate using a browser-based flow that creates and saves an API key to~/.apitally/auth.json:
APITALLY_API_KEY environment variable, or pass --api-key to any command.
Commands
| Command | Description |
|---|---|
auth | Configure API key |
whoami | Check authentication and show team info |
apps | List all apps in your team |
consumers | List consumers for an app |
endpoints | List endpoints for an app, with method and path filters |
metrics | Fetch metrics for an app, with filters and different aggregation options |
request-logs | Fetch request log data, with filters and field selection |
request-details | Fetch full details for a specific request and response, including headers, payloads, application logs, and traces |
sql | Run SQL queries against a local DuckDB database |
reset-db | Drop and recreate all tables in the local DuckDB database |
npx @apitally/cli --help for detailed usage information, or refer to the command reference in the skill.
DuckDB database
Most commands accept a--db flag. When set, data is written to a local DuckDB database instead of being printed as NDJSON to stdout. The database can then be queried with the sql command.
The database defaults to ~/.apitally/data.duckdb if no other path is provided (e.g. --db ./my-investigation.duckdb). It is created automatically on first use, and data is retained between sessions. When writing to tables, existing records are updated rather than duplicated.
For the schemas of the tables the CLI writes to, see the DuckDB table reference in the skill.