[{"data":1,"prerenderedAt":596},["ShallowReactive",2],{"blog-\u002Fblog\u002Fhow-to-use-ai-for-coding-on-a-budget":3,"blog-surroundings-\u002Fblog\u002Fhow-to-use-ai-for-coding-on-a-budget":591,"comments-\u002Fblog\u002Fhow-to-use-ai-for-coding-on-a-budget":593},{"id":4,"title":5,"body":6,"description":579,"extension":580,"meta":581,"navigation":455,"path":582,"published_at":583,"seo":584,"stem":585,"tags":586,"__hash__":590},"blog\u002Fblog\u002Fhow-to-use-ai-for-coding-on-a-budget.mdx","How to Use AI for Coding on a Budget",{"type":7,"value":8,"toc":565},"minimark",[9,17,27,30,35,38,66,72,76,86,90,93,113,116,120,123,143,150,154,162,165,204,207,211,214,219,233,238,249,253,320,326,330,333,364,367,371,374,380,386,392,398,409,421,477,492,498,502,505,531,535,538,541,544,548,556,561],[10,11,12],"p",{},[13,14],"img",{"alt":15,"src":16},"Developer desk with multiple AI tool tabs","\u002Fimages\u002Fblog\u002Fhow-to-use-ai-for-coding-on-a-budget\u002Fdeveloper-desk.jpg",[18,19,20],"blockquote",{},[10,21,22,26],{},[23,24,25],"strong",{},"Note:"," This is a living post. Last updated: June 2026.",[10,28,29],{},"AI coding tools have gotten expensive fast. Cursor Pro, GitHub Copilot, Claude Max. Subscriptions stack up. But the free and cheap tiers have also gotten genuinely good. You can do serious work without spending much, if you're deliberate about it.",[31,32,34],"h2",{"id":33},"start-with-whats-actually-free","Start with what's actually free",[10,36,37],{},"These are legitimately free with no credit card required:",[39,40,41,48,54,60],"ul",{},[42,43,44,47],"li",{},[23,45,46],{},"Claude.ai (free tier)",": access to Sonnet, the mid-tier model. Rate-limited but capable. Good for architecture questions, code review, and explaining unfamiliar codebases.",[42,49,50,53],{},[23,51,52],{},"GitHub Copilot (free tier)",": 2,000 completions\u002Fmonth and 50 chat messages. Enough to get a real feel for it before committing.",[42,55,56,59],{},[23,57,58],{},"Gemini (Google AI Studio)",": generous free API quota. Gemini 2.0 Flash is fast and surprisingly capable for code.",[42,61,62,65],{},[23,63,64],{},"Aider (open source)",": CLI-based coding agent that works with any model. Pair it with a free API tier and you have a free Cursor alternative.",[10,67,68],{},[13,69],{"alt":70,"src":71},"Aider CLI running in terminal with code diff","\u002Fimages\u002Fblog\u002Fhow-to-use-ai-for-coding-on-a-budget\u002Fairder-diff.webp",[31,73,75],{"id":74},"the-12-option-nano-gptcom","The $12 option: nano-gpt.com",[10,77,78,85],{},[79,80,84],"a",{"href":81,"rel":82},"https:\u002F\u002Fnano-gpt.com",[83],"nofollow","nano-gpt.com"," has a $12\u002Fmonth plan that gives you 60 million tokens per week across a broad selection of Chinese models: DeepSeek, GLM, MiniMax, and others. If you're curious about the Chinese model ecosystem or want serious token volume without committing to a Western vendor, this is one of the cheapest ways in. The models have gotten genuinely competitive, especially DeepSeek for code.",[31,87,89],{"id":88},"the-20-tier-is-the-sweet-spot","The $20 tier is the sweet spot",[10,91,92],{},"If you're going to spend anything, the $20\u002Fmonth options punch well above their weight:",[39,94,95,101,107],{},[42,96,97,100],{},[23,98,99],{},"Claude Pro",": gets you Claude Sonnet 4 with higher rate limits, plus access to Claude Code (the CLI). For coding tasks, this is arguably the best value at this price point.",[42,102,103,106],{},[23,104,105],{},"ChatGPT Plus",": access to GPT-4o and the o-series reasoning models. Useful if you're already in the OpenAI ecosystem.",[42,108,109,112],{},[23,110,111],{},"Cursor (Hobby)",": 2,000 fast completions + slow completions. Enough for part-time or side-project use.",[10,114,115],{},"Pick one. You don't need all three.",[31,117,119],{"id":118},"use-the-free-api-tiers-strategically","Use the free API tiers strategically",[10,121,122],{},"Most AI providers give you free API credits when you sign up:",[39,124,125,131,137],{},[42,126,127,130],{},[23,128,129],{},"Anthropic",": free credits on signup, then pay-as-you-go",[42,132,133,136],{},[23,134,135],{},"Google AI Studio",": free Gemini API access with rate limits",[42,138,139,142],{},[23,140,141],{},"OpenRouter",": routes to multiple models; some are free, some are pay-per-token",[10,144,145,146,149],{},"The key insight: ",[23,147,148],{},"API access is almost always cheaper than subscriptions"," if you're a moderate user. Run the math on your actual usage before defaulting to a flat monthly fee.",[31,151,153],{"id":152},"aider-a-cheap-model-a-real-coding-agent-for-free","Aider + a cheap model = a real coding agent for free",[10,155,156,161],{},[79,157,160],{"href":158,"rel":159},"https:\u002F\u002Faider.chat",[83],"Aider"," is an open-source AI coding assistant that runs in your terminal. It edits files directly, understands git, and works with most major model providers.",[10,163,164],{},"Pair it with Google's free Gemini Flash API and you have a zero-cost coding agent for most tasks:",[166,167,172],"pre",{"className":168,"code":169,"language":170,"meta":171,"style":171},"language-bash shiki shiki-themes github-light github-dark","pip install aider-chat\naider --model gemini\u002Fgemini-2.0-flash-exp\n","bash","",[173,174,175,191],"code",{"__ignoreMap":171},[176,177,180,184,188],"span",{"class":178,"line":179},"line",1,[176,181,183],{"class":182},"sScJk","pip",[176,185,187],{"class":186},"sZZnC"," install",[176,189,190],{"class":186}," aider-chat\n",[176,192,194,197,201],{"class":178,"line":193},2,[176,195,196],{"class":182},"aider",[176,198,200],{"class":199},"sj4cs"," --model",[176,202,203],{"class":186}," gemini\u002Fgemini-2.0-flash-exp\n",[10,205,206],{},"It's not as polished as Cursor, but for refactoring, generating boilerplate, and working through a task list, it's genuinely capable.",[31,208,210],{"id":209},"where-to-use-ai-and-where-not-to","Where to use AI and where not to",[10,212,213],{},"Free tiers run out. Use AI where it gives you the most leverage:",[10,215,216],{},[23,217,218],{},"High-value uses:",[39,220,221,224,227,230],{},[42,222,223],{},"Generating boilerplate (forms, CRUD, config files)",[42,225,226],{},"Understanding unfamiliar code or libraries",[42,228,229],{},"Writing and debugging regex, SQL, shell scripts",[42,231,232],{},"First drafts of tests",[10,234,235],{},[23,236,237],{},"Lower-value uses (don't burn your quota here):",[39,239,240,243,246],{},[42,241,242],{},"Asking it to explain things you could Google in 30 seconds",[42,244,245],{},"Iterating on UI copy or design decisions",[42,247,248],{},"Anything where you'll need to heavily edit the output anyway",[31,250,252],{"id":251},"the-free-model-tier-comparison-june-2026","The free model tier comparison (June 2026)",[254,255,256,272],"table",{},[257,258,259],"thead",{},[260,261,262,266,269],"tr",{},[263,264,265],"th",{},"Model",[263,267,268],{},"Free Access",[263,270,271],{},"Best For",[273,274,275,287,298,309],"tbody",{},[260,276,277,281,284],{},[278,279,280],"td",{},"Claude Sonnet (claude.ai)",[278,282,283],{},"Yes, rate-limited",[278,285,286],{},"Code review, architecture",[260,288,289,292,295],{},[278,290,291],{},"Gemini 2.0 Flash",[278,293,294],{},"Yes, via AI Studio API",[278,296,297],{},"Fast completions, agentic tasks",[260,299,300,303,306],{},[278,301,302],{},"GPT-4o Mini",[278,304,305],{},"Yes, via ChatGPT",[278,307,308],{},"General coding Q&A",[260,310,311,314,317],{},[278,312,313],{},"Llama 3 (via Groq)",[278,315,316],{},"Yes, very fast",[278,318,319],{},"Quick completions, low latency",[10,321,322],{},[13,323],{"alt":324,"src":325},"Comparison table of free AI coding tools","\u002Fimages\u002Fblog\u002Fhow-to-use-ai-for-coding-on-a-budget\u002Fai-tools-comparison.webp",[31,327,329],{"id":328},"what-i-actually-use","What I actually use",[10,331,332],{},"For context: I run a personal website and do client work. My current setup:",[39,334,335,341,347,352,358],{},[42,336,337,340],{},[23,338,339],{},"Claude Pro ($20\u002Fmo)",": primary tool for anything complex, architecture, and code review",[42,342,343,346],{},[23,344,345],{},"Aider + Gemini Flash (free)",": for agentic file edits and refactoring runs",[42,348,349,351],{},[23,350,52],{},": inline completions in VS Code",[42,353,354,357],{},[23,355,356],{},"OpenCode Desktop (free)",": local-first coding agent with a terminal CLI and editor UI",[42,359,360,363],{},[23,361,362],{},"MiniMax M3 (free tier)",": for the harder architecture, refactoring, and debugging tasks that need stronger reasoning",[10,365,366],{},"Total: $20\u002Fmonth. I've tried the $100+ setups and the ROI wasn't there for my workflow.",[31,368,370],{"id":369},"habits-that-stretch-a-small-budget-further","Habits that stretch a small budget further",[10,372,373],{},"Tooling matters less than how you use it. A few habits that have meaningfully reduced my token burn without hurting output quality:",[10,375,376,379],{},[23,377,378],{},"Front-load context once, not every message."," Paste the relevant files, types, and a one-paragraph spec at the start of a session. Then keep the rest of the conversation tight. Re-pasting the same context every prompt is the single biggest waste of free-tier quota I see.",[10,381,382,385],{},[23,383,384],{},"Ask for diffs, not full files."," \"Show me only the lines that change\" cuts output tokens by 5–10x on large files. Most rate limits are output-bound, not input-bound.",[10,387,388,391],{},[23,389,390],{},"Use the cheap model for the boring 80%."," Boilerplate, renames, \"write the test for this function,\" \"add JSDoc to these exports\" — Gemini Flash or Haiku handle these at a fraction of the cost. Save Sonnet\u002FOpus for the parts that actually need judgement.",[10,393,394,397],{},[23,395,396],{},"Cache your system prompts."," If you're using the API directly, prompt caching can drop costs by 70–90% for repeated context. The Anthropic and Gemini SDKs both support it; most people forget to turn it on.",[10,399,400,403,404,408],{},[23,401,402],{},"Stop mid-task to review."," Letting an agent run for 20 minutes unsupervised is how you burn $5 on a wrong turn. Short loops with human review are cheaper ",[405,406,407],"em",{},"and"," produce better code.",[10,410,411,420],{},[23,412,413,414,419],{},"Use ",[79,415,418],{"href":416,"rel":417},"https:\u002F\u002Fgithub.com\u002Fjuliusbrussee\u002Fcaveman",[83],"caveman","."," It's a Claude Code plugin (also works with Cursor, Windsurf, Copilot, Codex, and 30+ others) that makes your AI agent respond like a caveman — dropping filler words and verbose preamble while keeping full technical accuracy. The result is ~75% fewer output tokens with no loss in usefulness. Install is one command:",[166,422,424],{"className":168,"code":423,"language":170,"meta":171,"style":171},"# macOS \u002F Linux \u002F WSL\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002FJuliusBrussee\u002Fcaveman\u002Fmain\u002Finstall.sh | bash\n\n# Windows (PowerShell)\nirm https:\u002F\u002Fraw.githubusercontent.com\u002FJuliusBrussee\u002Fcaveman\u002Fmain\u002Finstall.ps1 | iex\n",[173,425,426,432,450,457,463],{"__ignoreMap":171},[176,427,428],{"class":178,"line":179},[176,429,431],{"class":430},"sJ8bj","# macOS \u002F Linux \u002F WSL\n",[176,433,434,437,440,443,447],{"class":178,"line":193},[176,435,436],{"class":182},"curl",[176,438,439],{"class":199}," -fsSL",[176,441,442],{"class":186}," https:\u002F\u002Fraw.githubusercontent.com\u002FJuliusBrussee\u002Fcaveman\u002Fmain\u002Finstall.sh",[176,444,446],{"class":445},"szBVR"," |",[176,448,449],{"class":182}," bash\n",[176,451,453],{"class":178,"line":452},3,[176,454,456],{"emptyLinePlaceholder":455},true,"\n",[176,458,460],{"class":178,"line":459},4,[176,461,462],{"class":430},"# Windows (PowerShell)\n",[176,464,466,469,472,474],{"class":178,"line":465},5,[176,467,468],{"class":182},"irm",[176,470,471],{"class":186}," https:\u002F\u002Fraw.githubusercontent.com\u002FJuliusBrussee\u002Fcaveman\u002Fmain\u002Finstall.ps1",[176,473,446],{"class":445},[176,475,476],{"class":182}," iex\n",[10,478,479,480,483,484,487,488,491],{},"You can dial in the intensity: ",[173,481,482],{},"lite"," drops filler, ",[173,485,486],{},"full"," is default caveman, ",[173,489,490],{},"ultra"," is telegraphic. Same fix. 75% less word.",[10,493,494],{},[13,495],{"alt":496,"src":497},"Token spend dashboard trending downward","\u002Fimages\u002Fblog\u002Fhow-to-use-ai-for-coding-on-a-budget\u002Ftoken-spend-dashboard.webp",[31,499,501],{"id":500},"whats-overrated-at-every-price-point","What's overrated at every price point",[10,503,504],{},"Some things sound great in marketing copy and rarely earn their cost in practice:",[39,506,507,513,519,525],{},[42,508,509,512],{},[23,510,511],{},"\"Unlimited\" plans."," They're never actually unlimited. Read the fair-use clause. The throttling kicks in right when you'd actually benefit.",[42,514,515,518],{},[23,516,517],{},"Massive context windows for everyday work."," A 1M-token window is useful maybe 5% of the time. The other 95%, you'd get better results with a focused 20k-token prompt.",[42,520,521,524],{},[23,522,523],{},"Multi-model routing as a default."," Routing between models adds latency and complexity. Pick one model that works and only reach for others when you've identified a real gap.",[42,526,527,530],{},[23,528,529],{},"Voice and image inputs for code."," Cool demo. Slow workflow. Type the code.",[31,532,534],{"id":533},"a-note-on-quality-vs-cost","A note on quality vs. cost",[10,536,537],{},"The honest tradeoff: cheaper models do worse work on hard problems. If you're doing serious architecture, security-sensitive code, or anything where a subtle bug costs real money, paying for the top-tier model is the right call. The budget tier is for everything else, which is most of what most of us do most days.",[10,539,540],{},"Don't be cheap on the 5% of work that matters. Be ruthless on the 95% that doesn't.",[542,543],"hr",{},[31,545,547],{"id":546},"changelog","Changelog",[39,549,550],{},[42,551,552,555],{},[23,553,554],{},"June 2026",": Initial publish. Added Aider + Gemini Flash workflow, OpenCode Desktop and MiniMax M3 to the personal stack, updated free tier table, habits and what's overrated sections, nano-gpt.com, and caveman plugin.",[10,557,558],{},[405,559,560],{},"Have a tool or tip I missed? The best setups I've found came from other developers sharing what actually works for them.",[562,563,564],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}",{"title":171,"searchDepth":193,"depth":193,"links":566},[567,568,569,570,571,572,573,574,575,576,577,578],{"id":33,"depth":193,"text":34},{"id":74,"depth":193,"text":75},{"id":88,"depth":193,"text":89},{"id":118,"depth":193,"text":119},{"id":152,"depth":193,"text":153},{"id":209,"depth":193,"text":210},{"id":251,"depth":193,"text":252},{"id":328,"depth":193,"text":329},{"id":369,"depth":193,"text":370},{"id":500,"depth":193,"text":501},{"id":533,"depth":193,"text":534},{"id":546,"depth":193,"text":547},"You don't need to spend $200\u002Fmonth to get serious value from AI coding tools. Here's what actually works at the free and cheap tiers.","mdx",{},"\u002Fblog\u002Fhow-to-use-ai-for-coding-on-a-budget","2026-06-13",{"title":5,"description":579},"blog\u002Fhow-to-use-ai-for-coding-on-a-budget",[587,588,589],"AI","Tools","Productivity","ZcPqBnDjB4Kzj2XidZ4EJgsPTNp37KHCmi6R9y9fRfY",[592,592],null,{"comments":594,"total":595},[],0,1781640587370]