CLI Reference¶
agentledger serve¶
Start the reverse proxy.
| Flag | Description | Default |
|---|---|---|
-c, --config | Path to config file | Auto-detect (see config overview) |
agentledger costs¶
Show a cost report from the ledger.
| Flag | Description | Default |
|---|---|---|
-c, --config | Path to config file | Auto-detect |
--last | Time window: 1h, 24h, 7d, 30d | 24h |
--by | Group by: model, provider, key | model |
Example:
agentledger export¶
Export cost data as CSV or JSON.
| Flag | Description | Default |
|---|---|---|
-c, --config | Path to config file | Auto-detect |
--format | Output format: csv, json | json |
--last | Time window: 1h, 24h, 7d, 30d | 30d |
--by | Group by: model, provider, key, agent, session | model |
agentledger mcp-wrap¶
Wrap an MCP server process for tool call metering via stdio.
| Flag | Description | Default |
|---|---|---|
-c, --config | Path to config file | Auto-detect |
Example:
agentledger version¶
Print the version string.
Environment Variables¶
All config settings can be overridden with environment variables prefixed AGENTLEDGER_: