How to Use Kimi K3 in VS Code
Kimi K3 suits long coding tasks and research that turns into working reports or dashboards. Its million-token context supports large projects, but explicit boundaries help prevent unrequested changes.
Prompts to try with Kimi K3 in VS Code
Copy an example into VS Code, or ask in your own words.
Use Kimi K3 to trace the failing tests in this repository to their root cause. Make the smallest justified fix, run the relevant tests, and report the evidence. Do not refactor unrelated code.
Use Kimi K3 to implement the requirements in SPEC.md. First identify affected modules and acceptance checks, then make the changes and run those checks. Stop and report any conflicting requirements.
Use Kimi K3 to profile this project's slowest GPU kernel. Compare each revision against the current implementation using the same inputs and numerical tolerance. Keep only changes supported by measured results.
Use Kimi K3 to turn the research method in docs/method.md into a Python implementation. Map equations to functions, document assumptions, and validate the results against the examples in that document.
Use Kimi K3 to build an interactive report from this project's research data. Include source references beside quantitative claims, test the calculations, and list missing data instead of inventing values.
How to set up Kimi K3 in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Kimi K3
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "openrouter", "model": "moonshotai/kimi-k3", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: VS Code finds Kimi K3 on Spiral, shows the price and runs it.
Kimi K3 providers and prices
Spiral runs Kimi K3 through OpenRouter. Open a card for today's price, with every fee included.
Up to $0.085206 per run at the default inputs. $0.2496 per 1M input tokens, $20.80 per 1M output tokens.
Settings you can ask for
Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | a whole number | ||
| Min p | 0 to 1 | ||
| Top k | a whole number from 0 | ||
| Logprobs | on or off | ||
| Max tokens | 1 to 943718 | The most output tokens to generate. | |
| Top logprobs | 0 to 20 | ||
| Reasoning effort | none, low, high, or max | max | How much the model reasons. |
| Repetition penalty | 0 to 2 | ||
| Parallel tool calls | on or off |
Every API field of MoonshotAI: Kimi K3 is on its tool page: open its card above.
What can you do with Kimi K3 in VS Code?
Turn a specification into tested code across a large project with Kimi K3. Set the permitted changes and acceptance checks so a long coding task stays focused.
Fix bugs across a large codebase
Use Kimi K3 to trace a failing behavior through several modules, propose a focused fix, and check it against a reproducible test.
Implement a feature from a specification
Give Kimi K3 the requirements, permitted changes, and acceptance checks. Ask it to carry the implementation through testing and report any unfinished requirements.
Optimize a GPU kernel
Ask Kimi K3 to profile a kernel, investigate the bottleneck, and compare revisions against the same correctness tolerance and benchmark.
Reproduce a computational research method
Use Kimi K3 to connect a paper's equations to executable code, document assumptions, and compare computed results with the published method.
Build an interactive research report
Ask Kimi K3 to organize supplied evidence into a report with charts and drill-down views. Require a source for each quantitative claim.
Draft a research presentation
Turn a research brief into a slide narrative with chart specifications, supporting evidence, and speaker notes using Kimi K3.
Create a recurring analysis dashboard
Use Kimi K3 to turn fresh data into dashboard updates, explanations of changes, and a list of gaps that need investigation.
More on Kimi K3 and VS Code
Overview
Kimi K3 in other agents
Questions about Kimi K3 in VS Code
Can VS Code use Kimi K3?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Kimi K3 like any built-in tool.
How much does Kimi K3 cost in VS Code?
Up to $0.085206 per run at the default inputs. $0.2496 per 1M input tokens, $20.80 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.
Do I need an OpenRouter account to use Kimi K3 in VS Code?
No. Spiral runs Kimi K3 on its own OpenRouter account. You sign in to Spiral once and never paste a key.
How long does it take to set up Kimi K3 in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while Kimi K3 runs?
Kimi K3 runs in the background. VS Code starts the run, checks on it and gives you the text, json when it's ready.
What is Kimi K3 good at?
Kimi K3 is suited to coding tasks that span many steps, large codebases, and research that becomes a report, presentation, or dashboard. Give it a concrete deliverable and a way to check the result.
How much context can Kimi K3 handle?
Moonshot documents a context window of one million tokens. Treat that as room for relevant evidence and conversation history, rather than a target to fill with unrelated material.
Which reasoning setting should I choose?
Moonshot documents low, high, and maximum effort, with maximum as the default. Start with low for bounded tasks and compare higher effort on work that requires several dependent decisions.
What should I watch for with Kimi K3?
Moonshot warns that ambiguous instructions can lead to unexpected decisions. State which changes are allowed, what needs review, and when the task is finished.
Why does conversation history matter for Kimi K3?
Kimi K3 expects complete assistant messages to be retained across conversation turns and tool calls, including reasoning and tool-call information. Keeping only the visible answer discards information Moonshot says the model requires.
Start using Kimi K3 in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


