Spiral gives your agent every tool with one account. Browse the tools →

VS Code · LLMReleased 2026-10-23

How to Use Kimi K3.1 Pro in VS Code

Kimi K3.1 Pro handles coding, parametric 3D design, and financial research. Compared with Kimi K3, it improves these tasks while keeping a million-token context window.

Prompts to try with Kimi K3.1 Pro in VS Code

Copy an example into VS Code, or ask in your own words.

Use Kimi K3.1 Pro to investigate this project's failing tests. Reproduce one failure, make the smallest justified fix, and run the relevant checks.

Kimi K3.1 ProVS Code
Try asking
  • Use Kimi K3.1 Pro to add a Godot checkpoint mechanic to this project. Follow existing conventions, preserve player progress after respawning, and verify the behavior.

  • Use Kimi K3.1 Pro to write a parametric modeling script for a 120 by 80 by 40 mm enclosure. Keep wall thickness and mounting-hole spacing editable, and check the resulting dimensions.

  • Use Kimi K3.1 Pro with maximum reasoning effort to review this repository's financial calculation code. Trace formulas and units, identify unsupported assumptions, and test any proposed correction.

  • Use Kimi K3.1 Pro to implement the feature described in this project's specification. First identify the affected modules, then make the change and verify each acceptance criterion.

How to set up Kimi K3.1 Pro in VS Code

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. 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"}'
  2. 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

  1. Send VS Code this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. Run Kimi K3.1 Pro

    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.1-pro",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: VS Code finds Kimi K3.1 Pro on Spiral, shows the price and runs it.

Kimi K3.1 Pro providers and prices

Spiral runs Kimi K3.1 Pro through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
MoonshotAI: Kimi K3.1 Pro
moonshotai/kimi-k3.1-pro

Settings you can ask for

Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number
Min p0 to 1
Top ka whole number from 0
Logprobson or off
Max tokens1 to 943718

The most output tokens to generate.

Top logprobs0 to 20
Reasoning effortnone, low, high, or maxmax

How much the model reasons.

Repetition penalty0 to 2

Every API field of MoonshotAI: Kimi K3.1 Pro is on its tool page: open its card above.

What can you do with Kimi K3.1 Pro in VS Code?

Turn project requirements into code changes and parametric modeling scripts with Kimi K3.1 Pro. Give the agent relevant files, acceptance criteria, and checks it can run.

Repair a reproducible software bug

Give Kimi K3.1 Pro the failing behavior and relevant code. Request a focused patch and a regression check.

Build a game mechanic

Ask Kimi K3.1 Pro to implement a small Godot, Unity, or Unreal Engine mechanic with explicit controls and acceptance criteria.

Design an adjustable mechanical part

Give Kimi K3.1 Pro dimensions and constraints for a bracket or enclosure. Request parametric modeling code with named measurements.

Draft an architectural model

Ask Kimi K3.1 Pro for a parametric room or building model from a written brief, with units and dimensions stated explicitly.

Compare financial disclosures

Have Kimi K3.1 Pro reconcile figures across supplied disclosures, citing each source and flagging conflicting periods or units.

Review financial model assumptions

Ask Kimi K3.1 Pro to check the supplied formulas and assumptions, then explain which changes affect the conclusion.

Answer questions across lengthy reference material

Give Kimi K3.1 Pro a defined reference set and ask for an answer tied to named sections, with missing evidence identified.

Prepare a recurring research brief

Use Kimi K3.1 Pro to compare newly retrieved evidence with an earlier brief and report supported changes.

Questions about Kimi K3.1 Pro in VS Code

Can VS Code use Kimi K3.1 Pro?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Kimi K3.1 Pro like any built-in tool.

How much does Kimi K3.1 Pro cost in VS Code?

Up to $0.044753 per run at the default inputs. $0.31239 per 1M input tokens, $10.92299 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.1 Pro in VS Code?

No. Spiral runs Kimi K3.1 Pro 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.1 Pro in VS Code?

About two minutes: add the hosted server, then sign in.

Does VS Code wait while Kimi K3.1 Pro runs?

Kimi K3.1 Pro 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.1 Pro useful for?

Coding, parametric 3D design, and financial research are documented strengths. Give it a concrete deliverable, constraints, and a way to check the result.

How much context can Kimi K3.1 Pro handle?

Its context window is 1,048,576 tokens. That figure is not a promise of an equally long answer; NVIDIA's documentation leaves the separate output maximum undisclosed.

What kinds of 3D design suit Kimi K3.1 Pro?

Parametric mechanical parts and architectural models are documented strengths. Specify dimensions, units, and which measurements should remain editable.

Which reasoning effort should I choose?

Use low effort for straightforward work and try high or maximum effort for harder reasoning. Compare results on a representative task, since additional reasoning also affects response time and token usage.

Can I trust Kimi K3.1 Pro's financial research without checking it?

Verify material claims and calculations against the cited evidence. Moonshot still measured factual errors on its internal hard stress test, and explicitly says those results do not describe everyday error rates.

Get started

Start using Kimi K3.1 Pro 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 VS Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options