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

Windsurf · LLMReleased 2026-07-06

How to Use Hy3 in Windsurf

Hy3 handles coding, long-document analysis, and tool-driven tasks. Compared with Hy3 Preview, Tencent reports more reliable tool calls and output formats, plus fewer factual errors.

Prompts to try with Hy3 in Windsurf

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

Use Hy3 with high reasoning to investigate the failing tests in this project. Trace the cause, make a focused fix, and run the relevant regression checks.

Hy3Windsurf
Try asking
  • Use Hy3 with high reasoning to review the database migration in this branch. Identify data-loss risks, ordering problems, and assumptions that need verification.

  • Use Hy3 to implement the interface described in the project brief. Check keyboard behavior, validation, and the stated acceptance criteria.

  • Ask Hy3 through Spiral to review the diff on this branch and list the three riskiest changes. Save the result in ./assets.

  • Get a second opinion from Hy3 on this function, then tell me what the call cost.

How to set up Hy3 in Windsurf

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

Use Spiral's MCP server

  1. Add the server

    Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:

    {
      "mcpServers": {
        "spiral": {
          "url": "https://api.spiral.ai/mcp"
        }
      }
    }
  2. Sign in

    Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

    devin mcp login spiral
  3. Check it

    Spiral is listed under This computer in Customize › MCPs. From the terminal:

    devin mcp list

Use the Spiral skill

  1. Send Windsurf 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 Hy3

    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": "tencent/hy3",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: Windsurf finds Hy3 on Spiral, shows the price and runs it.

Hy3 providers and prices

Spiral runs Hy3 through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Tencent: Hy3
tencent/hy3

Settings you can ask for

Ask Windsurf 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
Max tokens1 to 128000

The most output tokens to generate.

Temperature0 to 2
Presence penalty-2 to 2
Reasoning effortnone, low, or highhigh

How much the model reasons.

Frequency penalty-2 to 2
Repetition penalty0 to 2

Every API field of Tencent: Hy3 is on its tool page: open its card above.

What can you do with Hy3 in Windsurf?

Turn project code, logs, and requirements into repairs and implementation plans with Hy3 or Hy3 Preview. Give the agent a concrete acceptance check and request deeper reasoning for difficult debugging.

Debug a software failure

Use Hy3 or Hy3 Preview to connect an error log with relevant code, propose a focused repair, and identify a regression check.

Compare lengthy specifications

Ask Hy3 or Hy3 Preview to identify changed requirements, conflicting clauses, and missing decisions, with references to the supplied sections.

Prepare a research brief

Have Hy3 or Hy3 Preview combine retrieved sources into a brief that separates supported conclusions, disagreements, and open questions.

Explain changes in business data

Give Hy3 or Hy3 Preview tabular text and metric definitions. Request a comparison, supporting calculations, and a list of explanations that need more evidence.

Extract decisions from meeting notes

Ask Hy3 or Hy3 Preview to turn lengthy notes into decisions, assigned actions, deadlines, and unresolved questions without inventing missing details.

Work through a technical problem

Use Hy3 or Hy3 Preview with deeper reasoning to analyze a math or engineering problem, state assumptions, and check the proposed result.

Build a front-end prototype

Use Hy3 to turn written requirements into interface code, then check the result against the requested behavior and constraints.

Questions about Hy3 in Windsurf

Can Windsurf use Hy3?

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run Hy3 like any built-in tool.

How much does Hy3 cost in Windsurf?

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

Do I need an OpenRouter account to use Hy3 in Windsurf?

No. Spiral runs Hy3 on its own OpenRouter account. You sign in to Spiral once and never paste a key.

How long does it take to set up Hy3 in Windsurf?

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

Does Windsurf wait while Hy3 runs?

Hy3 runs in the background. Windsurf starts the run, checks on it and gives you the text, json when it's ready.

What is Tencent Hy3 useful for?

Hy3 and Hy3 Preview suit coding, reasoning, document analysis, and tasks that combine retrieved information with tool results. Practical requests include debugging a failure, comparing lengthy specifications, and turning research into a brief.

How much context can Tencent Hy3 handle?

Tencent documents a 256K-token context window for both Hy3 and Hy3 Preview. For document comparisons, ask for section references and keep the requested answer focused.

When should I use deeper reasoning?

Use high reasoning for difficult coding, math, or analysis. Direct responses suit straightforward requests such as extracting a short list or rewriting a paragraph.

How does Hy3 differ from Hy3 Preview?

Hy3 builds on Hy3 Preview with improvements to tool calls, output formats, factual accuracy, and conversation tracking. Tencent reports these improvements from product feedback and internal evaluations.

Can I trust every factual answer?

Check factual claims against the underlying sources. Tencent still measured hallucinations in Hy3's internal evaluations; a useful prompt asks for supporting passages and an explicit statement when evidence is missing.

Get started

Start using Hy3 in Windsurf

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

Paste this into Windsurf:

Set up Windsurf

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