BYOK Explained: How to Run AI Agents for $0 with Your Own API Key
The biggest barrier to running AI agents is not deployment — it is cost. Most platforms charge $30-60/month per bot, and that is before you pay for LLM tokens. But there is a better way: BYOK (Bring Your Own Key).
What Is BYOK?
BYOK means you plug your own LLM API key into your agent instead of using the platform's built-in credits. On Hatcher, this unlocks provider-paid BYOK usage at no extra cost — on any tier, including the free tier.
Your agent sends requests directly through your API key. You pay the LLM provider directly (often at much lower rates than middleman platforms charge), and Hatcher handles everything else: hosting, platform integrations, container management, auto-restart, and logs.
Why BYOK Changes the Economics
Let us compare the real costs:
Without BYOK (typical platform)
- Platform fee: $30-60/month
- Included tokens: usually limited (500-1000 messages)
- Overage charges: $0.01-0.05 per message
- Monthly cost for an active bot: $50-150+
With BYOK on Hatcher
- Platform fee: $0 (free tier) or $6.99/month (Starter)
- LLM cost: depends on your provider
- OpenRouter: from $0.10 per million tokens
- Together AI: competitive rates with free credits
- Monthly cost for an active bot: $0-5
The difference is staggering. BYOK removes the platform markup on tokens entirely.
How to Set Up BYOK on Hatcher
Setting up BYOK takes about 30 seconds:
- Get an API key from your preferred LLM provider. We support OpenAI, Anthropic, OpenRouter, Together AI, Google Gemini, Mistral, and more.
- Go to your agent's Config tab on the Hatcher dashboard.
- Select your BYOK provider from the dropdown menu.
- Paste your API key — it is encrypted with AES-256-GCM and never exposed.
- Choose your model — each provider offers different models at different price points.
- Save and restart your agent. Done.
Your agent now uses your API key for all LLM requests. The AI Credit balance disappears — you get provider-paid BYOK usage.
Best BYOK Providers for AI Agents
Here is our recommendation based on cost and quality:
BYOK provider option
BYOK providers vary by price and rate limits. Use whichever provider fits your latency and quality needs.
OpenRouter (Best Variety)
OpenRouter aggregates 100+ models from multiple providers. You can switch between GPT-4, Claude, Llama, Mistral, and others without changing your API key. Great for experimentation.
OpenAI (Best for GPT Models)
If you want GPT-4o or the latest OpenAI models, going direct gives you the best rates. The API is pay-per-token with no minimum spend.
Anthropic (Best for Claude)
Claude excels at nuanced conversation, coding tasks, and long-context work. If your agent handles complex queries, Claude through BYOK is a strong choice.
Together AI (Best for Open Models)
Together runs open-source models at competitive rates with frequent free credit promotions. Good for Llama, Mixtral, and other open models.
Security: Your Key Is Safe
A common concern with BYOK is key security. On Hatcher:
- Your API key is encrypted with AES-256-GCM before storage
- Keys are never stored in plain text in the database
- Keys are never exposed in the container — the LLM proxy handles decryption at request time
- Your key is never visible in logs, API responses, or the dashboard after initial entry
You can rotate your key at any time by updating it in the Config tab.
BYOK + Free Tier = Genuinely Free AI Agents
Here is the math that matters:
- Hatcher free tier: $0/month — includes 1 agent, all integrations, all frameworks
- BYOK provider key: paid directly to your chosen provider
- Telegram/Discord bot tokens: free to create
- Total: $0/month for a fully functional AI agent
This is not a trial. This is not a 14-day offer. This is the permanent free tier. Your agent runs 24/7 with auto-restart, connects to any platform, and handles provider-paid BYOK usage through BYOK.
When to Upgrade from Free
The free tier is genuinely sufficient for most individual use cases. Consider upgrading when:
- You need more than one agent — Starter includes 1, Pro includes 3, plus extra agent slots
- You want dedicated resources — Pro gives 1.5 CPU, 4GB RAM per agent instead of shared
- You need more workspace — paid tiers include larger agent workspaces
- You want always-active agents — free agents auto-sleep after 12 hours, while Starter and above stay active
But for a single agent with BYOK? Free works indefinitely.
Get Started
The fastest path to a $0 AI agent:
- Sign up at hatcher.host (free, no credit card)
- Create an agent with any framework
- Get a BYOK provider API key from your preferred supported provider
- Add the key in your agent's Config tab
- Deploy — your agent is live with provider-paid BYOK usage
Stop paying middleman markup on AI tokens. Bring your own key and keep your costs at zero.