[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Hermes 4 405B](https://spiral.ai/integrations/muse-code/hermes-4-405b)

# How to Use Hermes 4 405B in Muse Code

Hermes 4 405B suits math, code analysis, structured JSON, and character-driven writing. It scores higher than Hermes 4 70B on Nous Research's AIME 2025 and LiveCodeBench tests with reasoning enabled.

|  |  |
| --- | --- |
| Model | Hermes 4 405B |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.01602 per run at the default inputs. $1.30 per 1M input tokens, $3.90 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Hermes 4 405B in Muse Code

- Use Hermes 4 405B with reasoning enabled to review the parser and its tests in this project. Identify three concrete edge cases, propose a minimal patch, and explain how to test each case.
- Use Hermes 4 405B to compare the implementation with the project's written specification. Return a table of mismatches with file references and suggested corrections.
- Use Hermes 4 405B to repair the malformed JSON fixtures against the project's schema. Preserve existing values where possible and flag ambiguous repairs for review.
- Use Hermes 4 405B with reasoning enabled to analyze this project's scheduling algorithm. Check boundary conditions and propose tests for empty input, overlapping intervals, and equal timestamps.
- Use Hermes 4 405B to draft a contributor guide from the README and public interfaces. Keep it under 800 words and flag details the project does not document.

## How to set up Hermes 4 405B in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse 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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Hermes 4 405B**: One request; the result comes back by polling or a webhook.

```bash
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": "nousresearch/hermes-4-405b",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Muse Code finds Hermes 4 405B on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## Hermes 4 405B tools and prices

- [Nous: Hermes 4 405B](https://spiral.ai/tools/openrouter/nousresearch/hermes-4-405b) (OpenRouter): Up to $0.01602 per run at the default inputs. $1.30 per 1M input tokens, $3.90 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| top_k | 0 to … | — |  |
| top_p | 0 to 1 | — |  |
| logprobs |  | — |  |
| reasoning |  | — | Reasoning effort; reasoning tokens count toward max_tokens. |

## What can you do with Hermes 4 405B in Muse Code?

Turn project code and specifications into focused reviews, proposed fixes, and structured records with Hermes 4. Give it bounded analysis tasks, consistent with Nous Research's caution about rapid tool-calling loops.

### Review an algorithm

Provide a function, its intended behavior, and failing examples. Ask for likely defects, a proposed correction, and tests that distinguish the corrected behavior.

### Check a calculation

Supply the quantities, units, assumptions, and proposed result. Request an independent calculation with a short explanation and a list of missing information.

### Extract records from text

Turn supplied support messages or meeting notes into JSON matching a defined schema. Specify required keys and use null for information the source does not contain.

### Repair malformed JSON

Provide a broken JSON object and its intended schema. Request corrected JSON plus a separate account of any ambiguous values that require review.

### Draft character dialogue

Define each character's motives, knowledge, and speaking style. Request a scene that advances a specific conflict while keeping the voices distinct.

### Develop a long-form draft

Supply an outline, audience, source material, and target length. Draft one section at a time, then review continuity and repeated points.

### Explain a science concept

Ask for an explanation at a named reading level, followed by worked examples and practice questions. Supply reference material when factual precision matters.

### Compare written proposals

Provide the proposals and evaluation criteria. Request a comparison that separates stated evidence, assumptions, and unanswered questions.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## Hermes 4 405B in other agents

- [Amp](https://spiral.ai/integrations/amp/hermes-4-405b)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/hermes-4-405b)
- [Claude](https://spiral.ai/integrations/claude-desktop/hermes-4-405b)
- [Claude Code](https://spiral.ai/integrations/claude-code/hermes-4-405b)
- [Cline](https://spiral.ai/integrations/cline/hermes-4-405b)
- [Codex](https://spiral.ai/integrations/codex/hermes-4-405b)
- [Cursor](https://spiral.ai/integrations/cursor/hermes-4-405b)
- [Devin](https://spiral.ai/integrations/devin/hermes-4-405b)
- [dots](https://spiral.ai/integrations/dots/hermes-4-405b)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/hermes-4-405b)
- [Gemini](https://spiral.ai/integrations/gemini/hermes-4-405b)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/hermes-4-405b)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/hermes-4-405b)
- [goose](https://spiral.ai/integrations/goose/hermes-4-405b)
- [Grok](https://spiral.ai/integrations/grok/hermes-4-405b)
- [Grok Build](https://spiral.ai/integrations/grok-build/hermes-4-405b)
- [Hermes](https://spiral.ai/integrations/hermes/hermes-4-405b)
- [Instinct](https://spiral.ai/integrations/instinct/hermes-4-405b)
- [Manus](https://spiral.ai/integrations/manus/hermes-4-405b)
- [Muse](https://spiral.ai/integrations/muse/hermes-4-405b)
- [n8n](https://spiral.ai/integrations/n8n/hermes-4-405b)
- [Notion](https://spiral.ai/integrations/notion/hermes-4-405b)
- [OpenClaw](https://spiral.ai/integrations/openclaw/hermes-4-405b)
- [opencode](https://spiral.ai/integrations/opencode/hermes-4-405b)
- [Perplexity](https://spiral.ai/integrations/perplexity/hermes-4-405b)
- [Raycast](https://spiral.ai/integrations/raycast/hermes-4-405b)
- [VS Code](https://spiral.ai/integrations/vscode/hermes-4-405b)
- [Windsurf](https://spiral.ai/integrations/windsurf/hermes-4-405b)
- [Zapier](https://spiral.ai/integrations/zapier/hermes-4-405b)

## More Muse Code guides

- [Grok Latest](https://spiral.ai/integrations/muse-code/grok-latest)
- [Hy-MT2-1.8B](https://spiral.ai/integrations/muse-code/hy-mt2-1-8b)
- [Grok 4.7](https://spiral.ai/integrations/muse-code/grok-4-7)
- [Hy-MT2-30B-A3B](https://spiral.ai/integrations/muse-code/hy-mt2-30b-a3b)
- [Grok 4.6](https://spiral.ai/integrations/muse-code/grok-4-6)
- [Hy-MT2-7B](https://spiral.ai/integrations/muse-code/hy-mt2-7b)

## Questions about Hermes 4 405B in Muse Code

**Can Muse Code use Hermes 4 405B?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Hermes 4 405B like any built-in tool.

**How much does Hermes 4 405B cost in Muse Code?**

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

**Do I need an OpenRouter account to use Hermes 4 405B in Muse Code?**

No. Spiral runs Hermes 4 405B on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Hermes 4 405B in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while Hermes 4 405B runs?**

Hermes 4 405B runs in the background. Muse Code starts the run, checks on it and gives you the text, json when it's ready.

**What is Hermes 4 good at?**

Nous highlights math, science, instruction following, structured JSON, roleplay, and long-form writing. Useful starting tasks include explaining a calculation, extracting records into a schema, and drafting dialogue with a defined character voice.

**When should I use reasoning?**

Use reasoning for difficult math and code problems. In Nous Research's tests, Hermes 4 405B scored 78.1 on AIME 2025 with reasoning enabled, compared with 10.6 without it.

**Can Hermes 4 produce structured JSON?**

Yes. It was trained to follow JSON schemas and repair malformed objects. Supply the schema, define how missing values should appear, and validate the result before using it.

**What sampling settings should I start with?**

Nous recommends temperature 0.6, top_p 0.95, and top_k 20. Use these as a baseline when comparing prompts on the same tasks.

**How much text can Hermes 4 405B handle?**

Its published configuration specifies 131,072 token positions. That is configured context capacity, not a guarantee that it will write a response that long.

