Developer Builds LiteLLM Proxy to Run Claude Code CLI on AWS Bedrock
A developer frustrated with per-token API costs while learning Claude Code built a self-hosted LiteLLM proxy that redirects the CLI to Amazon Nova on AWS Bedrock instead of Anthropic's API. The setup was motivated by the limitations of common alternatives: local models like Ollama demand significant hardware, while free-tier providers such as OpenRouter impose token caps that interrupt long agentic sessions. The proxy translates requests so Claude Code's client behaves normally, while routing traffic through AWS credits at roughly 20–35% lower cost than Claude Haiku pricing. Safety guardrails include IAM permissions scoped to a single model and AWS Budget alerts to prevent unexpected charges. The developer cautions that Amazon Nova is not a Claude substitute and the setup is intended purely for learning agent mechanics, not for evaluating or shipping with Claude Code itself.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in