How to Use Hy3 in Claude Code
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 Claude Code
Copy an example into Claude Code, 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.
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 Claude Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
This adds Spiral to the current project. Add --scope user to use it in every project.
claude mcp add --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.
Use the Spiral skill
- Send Claude 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 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: Claude Code 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.
Up to $0.002819 per run at the default inputs. $0.1716 per 1M input tokens, $0.6864 per 1M output tokens.
Settings you can ask for
Ask Claude 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 | ||
| Top p | 0 to 1 | ||
| Max tokens | 1 to 128000 | The most output tokens to generate. | |
| Temperature | 0 to 2 | ||
| Presence penalty | -2 to 2 | ||
| Reasoning effort | none, low, or high | high | How much the model reasons. |
| Frequency penalty | -2 to 2 | ||
| Repetition penalty | 0 to 2 |
Every API field of Tencent: Hy3 is on its tool page: open its card above.
What can you do with Hy3 in Claude Code?
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.
More on Hy3 and Claude Code
Overview
Hy3 in other agents
More Claude Code guides
Questions about Hy3 in Claude Code
Can Claude Code use Hy3?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Hy3 like any built-in tool.
How much does Hy3 cost in Claude Code?
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 Claude Code plan is separate.
Do I need an OpenRouter account to use Hy3 in Claude Code?
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 Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while Hy3 runs?
Hy3 runs in the background. Claude Code 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.
Start using Hy3 in Claude Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Claude Code:
set up https://spiral.ai/SKILL.md


