Vantage Agent
AI coding agent with per-tool permissions, cost tracking, prompt optimization, and anomaly detection. Works across Claude (API), Claude Code, Codex CLI, and Gemini CLI.
Install
pip install vantageai-agent
Requires Python 3.9+.
Quick Start
Interactive REPL
# Set your API key, then launch
export ANTHROPIC_API_KEY=sk-...
vantageai-agent
One-shot prompt
vantageai-agent "explain the main function in cli.py"
Pipe mode
echo "summarize this file" | vantageai-agent
Backends
Vantage auto-detects the best backend. You can override with --backend:
| Backend | Description | Requires |
|---|---|---|
api |
Direct Anthropic API (exact token counts) | ANTHROPIC_API_KEY |
claude |
Claude Code subprocess (free tier / subscription) | claude binary |
codex |
OpenAI Codex CLI subprocess | codex binary |
gemini |
Gemini CLI subprocess | gemini binary |
vantageai-agent --backend claude "refactor this function"
vantageai-agent --backend codex "write unit tests for auth.py"
Auto-detect priority: VANTAGE_BACKEND env → ANTHROPIC_API_KEY → claude binary → codex binary → gemini binary.
Session Management
Sessions are persisted to ~/.vantage/sessions/. Resume any previous session:
# List sessions and costs
vantageai-agent summary
# Resume by session ID
vantageai-agent --resume abc12345
REPL Commands
| Command | Description |
|---|---|
/help |
Show all commands |
/tools |
Show tool approval status |
/allow Bash,Write |
Approve specific tools |
/allow all |
Approve all tools for this session |
/cost |
Show current session cost |
/optimize on|off |
Toggle prompt optimization |
/model claude-opus-4-6 |
Switch model mid-session |
/reset |
Clear history, permissions, cost |
/quit |
Exit (shows final cost summary) |
Cost Tracking
Every turn shows token usage and cost. Exit shows a full session summary:
+----- Cost Summary -----+
Model: claude-sonnet-4-6
Input tokens: 1,234
Output tokens: 456
Cost: $0.0123
Session total: $0.0456
Prompts: 3
+-------------------------+
For Claude Code / Codex / Gemini (subscription or free tier), costs are labeled ~$0.00 (free tier) or ~$0.0123 (estimated).
VantageAI Dashboard
Send telemetry to your VantageAI dashboard for cross-session cost analysis:
export VANTAGE_API_KEY=vnt_...
vantageai-agent
Or pass inline: vantageai-agent --vantage-key vnt_...
All Flags
vantageai-agent [OPTIONS] [PROMPT]
PROMPT One-shot prompt (omit for interactive REPL)
--backend api | claude | codex | gemini (auto-detected)
--model Model ID (default: claude-sonnet-4-6)
--max-tokens Max output tokens (default: 16384)
--resume SESSION_ID Resume a previous session
--api-key Anthropic API key (or ANTHROPIC_API_KEY env)
--vantage-key VantageAI dashboard API key (or VANTAGE_API_KEY env)
--system Custom system prompt
--no-optimize Disable prompt optimization
--cwd Set working directory
--debug Enable debug output
Environment Variables
| Variable | Description |
|---|---|
ANTHROPIC_API_KEY |
Anthropic API key |
VANTAGE_API_KEY |
VantageAI dashboard key |
VANTAGE_BACKEND |
Force backend (api/claude/codex/gemini) |
VANTAGE_MODEL |
Default model override |
License
MIT
Metadata
Release files for vantageai-agent 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vantageai_agent-0.2.4.tar.gz | 85.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vantageai_agent-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 141.4 kB
Release files / vantageai_agent-0.2.4.tar.gz
| Download URL | vantageai_agent-0.2.4.tar.gz |
|---|---|
| Size | 85.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0cf96e6ef0bf1b5097c50f76b0de8fb74158b18562d856125a9462daa7cdf540
|
|
BLAKE2b-256 checksum How to use checksums |
b5d6f2c8427d4a534e549fe1aaf56bc6dabe994363a152a473ea07b95d13ee81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / vantageai_agent-0.2.4-py3-none-any.whl
| Download URL | vantageai_agent-0.2.4-py3-none-any.whl |
|---|---|
| Size | 56.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31920d7b24490c40bb1839c55c89664c1db8c45b8cfce30bf2de69cfb6634c24
|
|
BLAKE2b-256 checksum How to use checksums |
a7273c50cd257dbc603b2d2e9d7ab578095840e7969b50f8e1ee9a1797460a7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|