Prerequisites
- An API key from your account settings.
Connect your agent
Pick your agent and drop in the config.Codex
Claude
Amp
OpenCode
- Generic
Add CostGraph to
~/.codex/config.toml:FAQ
Can the MCP change my infrastructure?
Can the MCP change my infrastructure?
No. CostGraph is read-only over MCP. It hands back recommendations, pricing, and your inventory. Your agent, using its own git or kubectl access, is what actually applies a change or opens a PR.
Which credential does it use?
Which credential does it use?
Your
bl_ API key, sent in the X-API-Key header. Every read is scoped to the tenant that key belongs to, so an agent only ever sees your own data.What can my agent see?
What can my agent see?
Cost recommendations, live pricing, and your tenant’s inventory and metrics. See Usage for the kinds of questions that maps to.