Vikey Auto picks the right model for each message
Made for coding agents on pay as you go. Use one model id, such as vikey/agent-gpt. Light messages run on a light model, heavy ones on a heavy model, and old history is trimmed before it is sent again.
> explain the TypeError in utils/date.ts
GPT-6 Lunalight26K tokensRp32
> add a phone number field to the signup form
GPT-5.6 Terramedium78K tokensRp615
> build a checkout page with an order summary
GPT-5.6 Terramedium78K tokensRp615
> migrate auth from sessions to OAuth
GPT-6.1 Solheavy260K tokensRp5.770
- Official price
- Rp29.880
- Vikey price
- Rp14.346
- With Vikey Auto
- Rp7.031
How it works
A tier is picked for each new message
When you send a new message, Vikey picks a light, medium or heavy model based on what the message asks for.
The same model until the task is done
While the agent works through its tool calls, the model does not change. The next pick happens on your next message.
Helper requests go to the light model
Small requests from the agent, such as writing a session title, go straight to the light model with no selection fee.
Old history is trimmed
Tool output and history that no longer matter are trimmed before resending, so the next turn's prompt can shrink by up to about half.

Three model ids, three lineups
Pick one and use it as the model name in your agent.
| Model id | light | medium | heavy |
|---|---|---|---|
| vikey/agent-gpt | GPT-6 Luna | GPT-5.6 Terra | GPT-6.1 Sol |
| vikey/agent-coding | Claude Haiku 5.5 | Claude Sonnet 5.5 | Claude Opus 5.5 |
| vikey/agent-mocin | DeepSeek V4.1 Flash | DeepSeek V4.1 Flash 1017 | DeepSeek V4.1 Flash 1017 |
You can change the model for each tier in the dashboard, under Auto Routing.

Two layers of savings
The price per token is already lower. Vikey Auto then cuts the number of tokens you pay for.
Layer 1: prices below official rates
Same models, lower price per token. A few examples today:
- GPT-5.6 Terra
Rp36.000Rp5.400-84% - Claude Sonnet 5.5
Rp36.000Rp18.000-55% - Qwen3.8 Max
Rp29.700Rp3.600-88%
Input per 1M tokens. Official price struck through.
Layer 2: fewer tokens
A light message does not need a heavy model, so each message runs on the tier that fits. Old history and tool output that no longer matter are trimmed before resending, so the next turn's prompt can shrink by up to about half.
These numbers come from our own tests with real coding agents. Savings are largest in long sessions and when the topic changes. Short sessions save little.
Estimate your savings
Pick a model, enter your monthly usage, and compare.
In million tokens. You can find your usage in your current provider's dashboard.
- Official price
Rp2.142.857- Vikey price
- Rp1.028.571
- With Vikey Auto
- Rp771.429
Estimate from today's prices at Rp18.000 per USD, with 20 input tokens for every output token. The Vikey Auto column assumes 30% of input tokens are trimmed. Real results depend on session length and how you work.
The price
Rp10per new message
The model selection fee, charged only when the request succeeds. Tokens are billed at the price of the model that was picked, at pay-as-you-go prices. There is no monthly fee.
See the price of each modelSet it up in your agent
Change the base URL and API key, then set the model name to a Vikey Auto model id.
export ANTHROPIC_BASE_URL=https://api.vikey.ai
export ANTHROPIC_AUTH_TOKEN=YOUR_VIKEY_API_KEY
export ANTHROPIC_MODEL=vikey/agent-gpt
export ANTHROPIC_DEFAULT_HAIKU_MODEL=openai/gpt-6-luna
claudeSet ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN to Vikey, then run claude.
# First run: export VIKEY_API_KEY=YOUR_VIKEY_API_KEY
model = "vikey/agent-gpt"
model_provider = "vikey"
[model_providers.vikey]
name = "Vikey"
base_url = "https://api.vikey.ai/v1"
env_key = "VIKEY_API_KEY"
wire_api = "responses"Add Vikey as a model provider in config.toml with the base URL and API key.
// First run: export VIKEY_API_KEY=YOUR_VIKEY_API_KEY
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"vikey": {
"npm": "@ai-sdk/openai-compatible",
"name": "Vikey",
"options": {
"baseURL": "https://api.vikey.ai/v1",
"apiKey": "{env:VIKEY_API_KEY}"
},
"models": {
"vikey/agent-gpt": {},
"openai/gpt-6-luna": {}
}
}
},
"model": "vikey/vikey/agent-gpt",
"small_model": "vikey/openai/gpt-6-luna"
}Add a Vikey provider in opencode.json with baseURL and apiKey.
curl https://api.vikey.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_VIKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "vikey/agent-gpt", "messages": [{"role": "user", "content": "Halo"}]}'- Cline, Roo Code, Kilo Code
- Choose the OpenAI Compatible provider, then enter the base URL, API key and model id.
- OpenClaw
- Add Vikey as a custom provider with the base URL and API key.
- Hermes
- Choose a custom OpenAI-compatible endpoint and enter the base URL and API key.
Who it fits
- You work with Claude Code, Codex, opencode or another coding agent.
- Your sessions are long and the topic changes often.
- You would rather not choose a model for each message.
- Short sessions save little. If you always need one specific model, select that model directly.
Frequently asked questions
Does Vikey Auto cost extra?
Yes, Rp10 per new message for the model selection, charged only when the request succeeds. Tokens are still billed at the price of the model that was picked.
How much does it save?
In our tests with real coding agents, the next turn's prompt shrank by up to about half. Savings are largest in long sessions and when the topic changes, and small in short sessions.
Can the model change in the middle of a task?
No. The picked model is used until the task from that message is done. A new pick happens on your next message.
Can I change the model for each tier?
Yes. Open Auto Routing in the dashboard and change the model for the light, medium or heavy tier.
How is it different from Token Plan?
Vikey Auto runs on pay as you go, so tokens are billed from your balance. Token Plan is a monthly plan on a separate endpoint with the model id vikey/plan.
Try Vikey Auto in your next session
Sign up, top up from Rp10.000, then set the model name to vikey/agent-gpt.