Live
Black Hat USADark ReadingBlack Hat AsiaAI BusinessThe jury verdicts against Meta and YouTube recognized some platform design features as defective, distinct from what Section 230 was created to protect (Casey Newton/Platformer)TechmemeA profile of Pakistan Virtual Assets Regulatory Authority Chairman Bilal Bin Saqib, who has used crypto diplomacy to help Pakistan win over President Trump (Faseeh Mangi/Bloomberg)TechmemeClaude Code Source Leaked via npm Packaging Error, Anthropic Confirms - thehackernews.comGoogle News: ClaudeSocial media platforms differ in transparency on defamation and AI issues - japantimes.co.jpGoogle News: Generative AIMad Bugs: Vim vs. Emacs vs. ClaudeHacker NewsBuild a Price Comparison Tool in 15 Minutes with the Marketplace Price APIDEV CommunityKubernetes - A Beginner's Guide to Container OrchestrationDEV CommunityGamers push back against Nvidia’s new AI tool redesigning female characters - Startup DailyGoogle News: Machine Learning5 Free Copilot Alternatives That Actually Work in 2026DEV CommunityGoogle rolls out AI Inbox feature to organise emails in Gmail: Report - Business StandardGoogle News: GeminiCodiumAI vs Codium (Open Source): They Are NOT the SameDEV CommunityNews - Realising AI’s promise depends on protecting its foundations - ST EngineeringGoogle News: AI SafetyBlack Hat USADark ReadingBlack Hat AsiaAI BusinessThe jury verdicts against Meta and YouTube recognized some platform design features as defective, distinct from what Section 230 was created to protect (Casey Newton/Platformer)TechmemeA profile of Pakistan Virtual Assets Regulatory Authority Chairman Bilal Bin Saqib, who has used crypto diplomacy to help Pakistan win over President Trump (Faseeh Mangi/Bloomberg)TechmemeClaude Code Source Leaked via npm Packaging Error, Anthropic Confirms - thehackernews.comGoogle News: ClaudeSocial media platforms differ in transparency on defamation and AI issues - japantimes.co.jpGoogle News: Generative AIMad Bugs: Vim vs. Emacs vs. ClaudeHacker NewsBuild a Price Comparison Tool in 15 Minutes with the Marketplace Price APIDEV CommunityKubernetes - A Beginner's Guide to Container OrchestrationDEV CommunityGamers push back against Nvidia’s new AI tool redesigning female characters - Startup DailyGoogle News: Machine Learning5 Free Copilot Alternatives That Actually Work in 2026DEV CommunityGoogle rolls out AI Inbox feature to organise emails in Gmail: Report - Business StandardGoogle News: GeminiCodiumAI vs Codium (Open Source): They Are NOT the SameDEV CommunityNews - Realising AI’s promise depends on protecting its foundations - ST EngineeringGoogle News: AI Safety

I built a $2/month Claude API proxy — here's the curl command

Dev.to AIby brian austinMarch 31, 20264 min read0 views
Source Quiz

<h1> I built a $2/month Claude API proxy — here's the curl command </h1> <p>I got tired of paying $20/month for Claude Pro just to use Claude Code.</p> <p>So I built a flat-rate Claude API proxy. Here's everything you need to use it.</p> <h2> The one-line setup </h2> <div class="highlight js-code-highlight"> <pre class="highlight shell"><code><span class="nb">export </span><span class="nv">ANTHROPIC_BASE_URL</span><span class="o">=</span>https://api.simplylouie.com <span class="nb">export </span><span class="nv">ANTHROPIC_API_KEY</span><span class="o">=</span>your_key_here </code></pre> </div> <p>That's it. Every tool that uses <code>ANTHROPIC_BASE_URL</code> now routes through the proxy.</p> <h2> Test it with curl </h2> <div class="highlight js-code-highlight"> <pre class="highlight shell

I built a $2/month Claude API proxy — here's the curl command

I got tired of paying $20/month for Claude Pro just to use Claude Code.

So I built a flat-rate Claude API proxy. Here's everything you need to use it.

The one-line setup

export ANTHROPIC_BASE_URL=https://api.simplylouie.com export ANTHROPIC_API_KEY=your_key_here

Enter fullscreen mode

Exit fullscreen mode

That's it. Every tool that uses ANTHROPIC_BASE_URL now routes through the proxy.

Test it with curl

curl https://api.simplylouie.com/v1/messages \  -H "x-api-key: $ANTHROPIC_API_KEY" \  -H "anthropic-version: 2023-06-01" \  -H "content-type: application/json" \  -d '{  "model": "claude-opus-4-5",  "max_tokens": 1024,  "messages": [{"role": "user", "content": "Hello"}]  }'

Enter fullscreen mode

Exit fullscreen mode

You get a real Anthropic-format response. Your existing tools don't know the difference.

Use it with Claude Code

# In your shell profile export ANTHROPIC_BASE_URL=https://api.simplylouie.com export ANTHROPIC_API_KEY=sl_your_key_here

Now run Claude Code normally

claude`

Enter fullscreen mode

Exit fullscreen mode

Claude Code reads ANTHROPIC_BASE_URL automatically. No config files needed.

Use it with Python

import anthropic

client = anthropic.Anthropic( api_key="sl_your_key_here", base_url="https://api.simplylouie.com" )

message = client.messages.create( model="claude-opus-4-5", max_tokens=1024, messages=[{"role": "user", "content": "Hello, Claude"}] )

print(message.content)`

Enter fullscreen mode

Exit fullscreen mode

Use it with the JS/TS SDK

import Anthropic from '@anthropic-ai/sdk';

const client = new Anthropic({ apiKey: 'sl_your_key_here', baseURL: 'https://api.simplylouie.com', });

const message = await client.messages.create({ model: 'claude-opus-4-5', max_tokens: 1024, messages: [{ role: 'user', content: 'Hello' }], });

console.log(message.content);`

Enter fullscreen mode

Exit fullscreen mode

Use it with LangChain

from langchain_anthropic import ChatAnthropic

llm = ChatAnthropic( model="claude-opus-4-5", anthropic_api_key="sl_your_key_here", anthropic_api_url="https://api.simplylouie.com" )

response = llm.invoke("Explain async/await in one paragraph") print(response.content)`

Enter fullscreen mode

Exit fullscreen mode

Use it with LlamaIndex

from llama_index.llms.anthropic import Anthropic

llm = Anthropic( model="claude-opus-4-5", api_key="sl_your_key_here", base_url="https://api.simplylouie.com" )

response = llm.complete("Write a haiku about programming") print(response.text)`

Enter fullscreen mode

Exit fullscreen mode

What models are available?

All current Claude models:

  • claude-opus-4-5 — most capable

  • claude-sonnet-4-5 — balanced speed/quality

  • claude-haiku-3-5 — fastest, cheapest

How much does it cost?

$2/month flat rate.

No per-token billing. No usage meters. No surprise invoices.

For comparison:

  • Anthropic direct API: ~$15/million input tokens (Opus)

  • Claude Pro subscription: $20/month (only for claude.ai, not API)

  • SimplyLouie: $2/month for API access

If you're building something small, running experiments, or using Claude Code daily — flat rate saves you money.

The 7-day free trial

Get your API key at simplylouie.com/developers

Card required to start (standard SaaS), not charged for 7 days.

Why I built this

I was spending $20/month on Claude Pro just to get API access for Claude Code. Most of that quota sat unused.

Flat-rate makes more sense for developers who use Claude in bursts — heavy one week, light the next.

50% of revenue goes to animal rescue. That part wasn't required, it just felt right.

Drop your questions below — happy to help you get set up.

Was this article helpful?

Sign in to highlight and annotate this article

AI
Ask AI about this article
Powered by AI News Hub · full article context loaded
Ready

Conversation starters

Ask anything about this article…

Daily AI Digest

Get the top 5 AI stories delivered to your inbox every morning.

More about

claudellamamodel

Knowledge Map

Knowledge Map
TopicsEntitiesSource
I built a $…claudellamamodelavailableversionapplicationDev.to AI

Connected Articles — Knowledge Graph

This article is connected to other articles through shared AI topics and tags.

Knowledge Graph100 articles · 236 connections
Scroll to zoom · drag to pan · click to open

Discussion

Sign in to join the discussion

No comments yet — be the first to share your thoughts!

More in Models