OpenRouter를 사용하여 컴퓨터에서 Claude 코드를 무료로 실행하세요

작성자

카테고리:

← 피드로
DEV Community · SOHAM CHAVAN · 2026-08-16 개발(SW)
Cover image for Run Claude Code for FREE on Your Machine Using OpenRouter

SOHAM CHAVAN

 Tired of paying for Claude Pro just to get powerful AI coding help?

I recently set this up and now run top-tier models right in my terminal — completely free on the free tier. Perfect for freelance web developers who want Claude-level intelligence for building projects, debugging, and client work without extra expenses.

Quick Setup (takes < 5 minutes)

1. Install Claude Code


bash
npm install -g @anthropic-ai/claude-code

2. Get your free OpenRouter API key
→ openrouter.ai
3. Add these lines to your ~/.zshrc or ~/.bashrc:

export OPENROUTER_API_KEY="your_key_here"
export ANTHROPIC_BASE_URL="https://openrouter.ai/api"
export ANTHROPIC_AUTH_TOKEN="$OPENROUTER_API_KEY"
export ANTHROPIC_API_KEY=""  # Important: keep this blank

4. Restart your terminal and run:
claude --model openrouter/free

That’s it. You now have a powerful coding assistant running in your terminal.
Pro tip for freelancers
Use this while building client projects. It speeds up Next.js/React work, Tailwind styling, API integrations, and debugging dramatically.
![ ](https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/2arf96xmhu2l543s1jsn.jpeg)

Enter fullscreen mode Exit fullscreen mode

원문에서 계속 ↗