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

Notion · LLMReleased 2026-06-12

How to Use Kimi K2.7 Code in Notion

Kimi K2.7 Code is built for debugging, refactoring, and implementing changes across multiple files. Compared with Kimi K2.6, it targets longer coding tasks; Moonshot recommends Kimi K2.6 for general writing and conversation.

Prompts to try with Kimi K2.7 Code in Notion

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

Every morning, use Kimi K2.7 Code to review the latest test-run summaries. Group recurring failures, compare them with yesterday's findings, and propose the next diagnostic step.

Kimi K2.7 CodeNotion
Try asking
  • Each weekday, use Kimi K2.7 Code to review newly reported software bugs. Extract reproduction details, identify missing evidence, and draft focused engineering tasks.

  • After each release, use Kimi K2.7 Code to compare incident summaries with the release's acceptance criteria. Identify behavior that needs a regression test.

  • Every week, use Kimi K2.7 Code to review dependency release notes supplied to this task. Identify changes that may affect our documented application behavior and propose migration checks.

  • Each evening, use Kimi K2.7 Code to revisit unresolved debugging hypotheses using today's incident updates. Mark each hypothesis as supported, contradicted, or still untested, with evidence.

How to set up Kimi K2.7 Code in Notion

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

Use the Spiral skill

  1. Send Notion 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 Spiral's MCP server

  1. Allow custom MCP servers

    A workspace owner opens Settings › Connections, then the Manage tab, and turns on Enable custom MCP servers. Where members may install only approved connections, also add Spiral under Approved connections › Add approved connection › Custom MCP server with the URL below.

  2. Add Spiral to a custom agent

    Open the custom agent (or create one), then Settings › Tools & Access › Add connection › Custom MCP server. Paste this URL, name it Spiral, keep OAuth and click Connect.

    https://api.spiral.ai/mcp
  3. Sign in to Spiral and approve

    Spiral opens: sign in, pick the organization and click Authorize. No API key. Spiral gives the connection its own key; Notion never sees it, and you can remove it under Settings › Connected apps in the console.

  4. Run Kimi K2.7 Code in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Kimi K2.7 Code, prices it and runs it each time the step fires.

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 K2.7 Code

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

Then paste one of the prompts above: Notion finds Kimi K2.7 Code on Spiral, shows the price and runs it.

Kimi K2.7 Code providers and prices

Spiral runs Kimi K2.7 Code through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
MoonshotAI: Kimi K2.7 Code
moonshotai/kimi-k2.7-code

Settings you can ask for

Ask Notion for any of these in your prompt.

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

The most output tokens to generate.

Temperature0 to 2
Top logprobs0 to 20
Presence penalty-2 to 2
Frequency penalty-2 to 2
Repetition penalty0 to 2
Parallel tool callson or off

Every API field of MoonshotAI: Kimi K2.7 Code is on its tool page: open its card above.

What can you do with Kimi K2.7 Code in Notion?

Kimi K2.7 Code can support recurring engineering investigations that continue across several runs. Give each run the latest evidence and a record of unresolved questions so it can propose the next useful action.

Fix a bug across multiple files

Ask Kimi K2.7 Code to trace a reported failure through the relevant code, propose a repair, and check it against the reproduction steps.

Implement a complete feature

Give Kimi K2.7 Code acceptance criteria for a feature that touches several components. Request the implementation and a report of which criteria were verified.

Refactor shared logic

Have Kimi K2.7 Code consolidate duplicated behavior while preserving existing interfaces and test expectations.

Investigate failing tests

Give Kimi K2.7 Code the failure output and relevant implementation. Ask for the likely cause, a focused correction, and regression coverage.

Plan a code migration

Ask Kimi K2.7 Code to identify affected components, order the changes, and define checks for each stage of a migration.

Review a proposed change

Ask Kimi K2.7 Code to compare a patch with its requirements and identify concrete behavior changes that need testing.

Investigate recurring failures

Use Kimi K2.7 Code to examine successive test or incident reports, track unresolved hypotheses, and propose the next diagnostic step.

Questions about Kimi K2.7 Code in Notion

Can Notion use Kimi K2.7 Code?

Yes. Add Spiral to Notion as an MCP server, and Notion can find and run Kimi K2.7 Code like any built-in tool.

How much does Kimi K2.7 Code cost in Notion?

Up to $0.018665 per run at the default inputs. $0.78 per 1M input tokens, $4.55 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Notion plan is separate.

Do I need an OpenRouter account to use Kimi K2.7 Code in Notion?

No. Spiral runs Kimi K2.7 Code 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 K2.7 Code in Notion?

About two minutes: allow custom MCP servers, then add Spiral to a custom agent, then sign in to Spiral and approve.

Does Notion wait while Kimi K2.7 Code runs?

Kimi K2.7 Code runs in the background. Notion starts the run, checks on it and gives you the text, json when it's ready.

What is Kimi K2.7 Code best suited for?

Use it for coding tasks that require several connected changes, such as tracing a bug, refactoring a codebase, or implementing a feature across multiple files.

How much context can Kimi K2.7 Code handle?

It has a 256K-token context window. For code review, prioritize the relevant implementation, requirements, and test results so the task stays focused.

Can Kimi K2.7 Code run without thinking?

No. Kimi K2.7 Code always uses thinking mode.

Which sampling settings does Moonshot recommend?

Moonshot recommends temperature 1.0 and top_p 0.95. Use those as your starting point when evaluating coding results.

Does Kimi K2.7 Code retain reasoning between turns?

Yes. It preserves reasoning across turns, which supports coding tasks that continue through several rounds of investigation and changes.

Get started

Start using Kimi K2.7 Code in Notion

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Notion:

Set up Notion

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