Your smartest model plans. Let the cheaper one edit your code.

Rayu Code is an AI coding agent for your terminal and VS Code. Put claude-opus-5.5 in charge with /model, hand the edits to DeepSeek-V4.1-flash:lastest with /subagent_model, and pay from one credit balance, from $1.99 a month. Or bring your own keys for 30+ providers.

$ curl -fsSL https://rayucode.com/install | bash
Rayu Code · shop-api
Ask Rayu to change something…
session 0 cr
Every job runs on the model you assign, from one balance
Model prices

Same job. Different prices.

Pick the size of the job and see what each hosted model would charge before you run it.

20 models · 40k tokens in · 4k out
claude-haiku-5.51M context · 1,000 · 2,500 per 1M50credits
claude-opus-5.51M context · 6,000 · 16,000 per 1M304credits
claude-sonnet-5-51M context · 4,000 · 10,000 per 1M200credits
DeepSeekDeepSeek-V4.1-flash:lastest1M context · 500 · 1,500 per 1M26credits
Long Cat 2.51M context · 300 · 1,000 per 1M16credits
Mistral-large-41M context · 1,000 · 3,000 per 1M52credits
QwenQwen3.8-flash1M context · 500 · 1,500 per 1M26credits
MiniMaxMinimax-m3.1-flash1M context · 500 · 1,500 per 1M26credits
Kimi-k3.1-pro1M context · 6,000 · 15,000 per 1M300credits
kimi-k2.8-for-coding1M context · 3,000 · 5,000 per 1M140credits
Long Cat 2.01M context · 300 · 1,000 per 1M16credits
claude-opus-4.81M context · 6,000 · 18,000 per 1M312credits
GLM5.3 flash1M context · 1,010 · 2,500 per 1M50credits
GLM-5.31M context · 2,500 · 6,000 per 1M124credits
Sonnet 4.61M context · 2,000 · 6,000 per 1M104credits
MiniMaxMinimax-M31M context · 2,500 · 6,000 per 1M124credits
Kimi-k2.7-code256K context · 2,500 · 6,000 per 1M124credits
QwenQwen3.8-max1M context · 6,000 · 15,000 per 1M300credits
Opus 4.61M context · 5,000 · 12,000 per 1M248credits
Nemotron-3-Ultra-550b-a55b1M context · 0 · 0 per 1M0credits
Live catalog rates. Before cache discounts; cache reads cost about a tenth of input.All models and rates →
How it works

From install to merged fix
in four steps.

01
Terminal
$ curl -fsSL https://rayucode.com/install | bash
✓ rayu installed

Install the CLI

One command on macOS and Linux, or PowerShell on Windows. The VS Code extension runs the same engine with the same account.

02
rayucode.com/cli-login
Approve sign-in for Rayu CLI?
CancelApprove

Sign in once

Run rayu and choose Sign in. Your browser opens, you approve with Google, and the terminal finishes on its own. No API keys to copy.

03
/model
claude-opus-5.56,000 · 16,000
claude-haiku-5.51,000 · 2,500
claude-sonnet-5-54,000 · 10,000
DeepSeek-V4.1-flash:lastest500 · 1,500

Assign a model per job

Set the main model with /model and the subagents with /subagent_model. Every hosted model draws from the same credits.

04
src/auth/refresh.ts
- return now > exp
+ const drift = 60_000
+ return now > exp + drift
✓ 18/18 tests pass · 17 credits

Review and ship

The agent edits, runs your tests and shows the diff before anything lands. Check what it cost with /usage.

Ways to work

Spend on thinking.
Save on typing.

Orchestratorclaude-opus-5.5
1Move rate limits into middleware
2Update 3 route files to use it
3Add tests for burst and reset
SubagentsDeepSeek-V4.1-flash:lastest × 3
routes/orders.ts49 cr
routes/users.ts43 cr
routes/payments.tsrunning
Plan 488 cr · Edits 155 cr643 cr
Ask the repoNemotron-3-Ultra-550b-a55b · 1M context
Context used
812,400 tokens · 1,420 files
src/billing/ledger.tsread
src/billing/stripe.tsread
src/payments/khqr.tsread
src/jobs/settle.tsread
Refunds are written in ledger.ts but settle.ts never reads them back, so a refunded top-up still counts toward the balance until the nightly job reruns.
Rayu Studio · /remoteConnected
MacBook Pro · rayu · shop-apilive
› run the migration on staging
Plan bun run db:migrate --env=staging
Waiting for approval…
Allow bun run db:migrate?DenyAllow once
Roadmap

Terminal today.
Browser and desktop next.

The same agent, account and credits on every surface.

v2.4.3 · Now
Terminal
$ rayu
› /model claude-opus-5.5
› /subagent_model deepseek-v4.1-flash-1017-cloud
✓ main claude-opus-5.5 · subagents DeepSeek-V4.1-flash:lastest

CLI and VS Code

Run Rayu in any terminal or inside VS Code. Both use one engine and one account.

Available
3.0 · Next

Rayu Code 3.0 in the browser

Open the agent in a browser tab and work on your projects without installing anything.

Coming next
4.0 · Later
Rayu Code

Rayu Code 4.0 on desktop

A desktop app for macOS, Windows and Linux, with the same models and credits.

Planned
Pricing

Pay for tokens, not seats.

Plan credits renew each month. Top-up credits never expire and are used after your plan credits. Pay by card, or by QR with Bakong KHQR in Cambodia.

Free

$0 forever

10,000 credits a month.

  • Bring Your Own API Keys (BYOK) + 10000 credits (with AI longcat model)
  • Unlimited daily turn usage limit
  • Complete CLI filesystem & shell tools
Install free

Basic

$1.99 / month

40,000 credits a month.

  • 40,000 credits monthly allowance
  • Rayu Hosted Proxy (No keys needed) + Free generate API key
  • Bring Your Own API Keys (BYOK)
Choose Basic

Pro

$4.99 / month

100,000 credits a month.

  • Rayu Hosted Proxy (No keys needed) + Free generate API key
  • 130,000 credits monthly allowance
  • Unlimited daily turns & features
Choose Pro

Ultra

$9.99 / month

240,000 credits a month.

  • Rayu Hosted Proxy (No keys needed) x5 + Free generate API key
  • 240,000 credits monthly allowance
  • Unlimited daily turns & features
Choose Ultra

Max

$19.99 / month

540,000 credits a month.

  • Rayu Hosted Proxy (No keys needed) x15 + Free Generate API key
  • 500,000 credits monthly allowance
  • Unlimited daily turns & features
Choose Max

Full details and checkout on the plans page.

FAQ

Questions we
get asked.

Short answers. The docs have the long ones.

Which models can I use?

Signed in on a paid plan, you get Rayu’s hosted catalog: claude-haiku-5.5, claude-opus-5.5, claude-sonnet-5-5, DeepSeek-V4.1-flash:lastest, Long Cat 2.5, Mistral-large-4, Qwen3.8-flash, Minimax-m3.1-flash, Kimi-k3.1-pro, kimi-k2.8-for-coding, Long Cat 2.0, claude-opus-4.8, GLM5.3 flash, GLM-5.3, Sonnet 4.6, Minimax-M3, Kimi-k2.7-code, Qwen3.8-max, Opus 4.6, Nemotron-3-Ultra-550b-a55b. The list updates live. With your own keys you can also use Anthropic, OpenAI, Gemini, OpenRouter and about 30 other providers.

How do I give each job its own model?

Use /model to set the main model, /subagent_model to put subagents on a different one, and /orchestrator to have the main agent plan and delegate the work.

How do credits work?

Each hosted model charges credits per million tokens at its own rate, and cache reads cost about a tenth of fresh input. Plan credits are used first, then any top-up credits. Plan credits renew monthly; top-up credits never expire.

Can I use my own keys or local models?

Yes, on every plan including Free. Run /connect to add a provider key, or point Rayu at Ollama, LM Studio or vLLM. That traffic goes straight to the provider and uses no Rayu credits.

How do I pay?

By card, or by QR with Bakong KHQR in Cambodia. Run /topup in the CLI, or open billing on rayucode.com.

When do the browser and desktop versions come?

Rayu Code 3.0 brings the agent to the browser, and 4.0 brings a desktop app. Follow the changelog or the Telegram community for release news.

Right model.
Right price.

Install the CLI, pick a plan from $1.99, and give every job the model it needs.

$ curl -fsSL https://rayucode.com/install | bash