[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Morph V3 Large](https://spiral.ai/integrations/claude-code/morph-v3-large)

# How to Use Morph V3 Large in Claude Code

Morph V3 Large merges proposed code edits into existing source and returns the complete updated code. Compared with Morph V3 Fast, it targets complex refactors where merge accuracy matters more than speed.

|  |  |
| --- | --- |
| Model | Morph V3 Large |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.010159 per run at the default inputs. $1.17 per 1M input tokens, $2.47 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Morph V3 Large in Claude Code

- Read src/auth.ts and prepare a null check before session creation. Use Morph V3 Large to merge it with the complete current source, marking unchanged sections in the update, then run the relevant tests.
- Prepare a refactor that extracts the repeated validation logic in src/orders.ts into one helper. Use Morph V3 Large to merge the helper and call-site changes together, preserving unrelated code.
- Add explicit parameter and return types to the exported functions in src/formatters.ts. Prepare the intended signatures first, then use Morph V3 Large to merge the update with the complete original source and run the type checker.
- Turn the approved review comments for src/client.ts into one update. Use Morph V3 Large to merge all changes together with a specific instruction and existing-code markers, then show the resulting diff.
- Prepare the approved error-handling change for each affected Python module. Use Morph V3 Large separately for each complete original source and update pair, then run the focused tests.

## How to set up Morph V3 Large in Claude Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **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

1. **Send Claude 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 Morph V3 Large**: 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": "morph/morph-v3-large",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Claude Code finds Morph V3 Large on Spiral, shows the price and runs it.

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

## Morph V3 Large tools and prices

- [Morph: Morph V3 Large](https://spiral.ai/tools/openrouter/morph/morph-v3-large) (OpenRouter): Up to $0.010159 per run at the default inputs. $1.17 per 1M input tokens, $2.47 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| stop |  | — |  |
| logprobs |  | — |  |
| max_tokens | 1 to 131072 | — | The most output tokens to generate. |
| temperature | 0 to 2 | — |  |
| top_logprobs | 0 to 20 | — |  |
| response_format |  | — |  |

## What can you do with Morph V3 Large in Claude Code?

Apply prepared fixes and complex refactors to project code with Morph V3 Large. Let the coding agent plan the change, then send complete original source and a specific update for merging.

### Apply a reviewed bug fix

Give Morph V3 Large the current source and a prepared fix, such as a null check before session creation. Return the complete updated code for review.

### Merge a complex refactor

Apply a prepared refactor that changes several functions in one module. State the intended change explicitly and mark the sections that should stay.

### Add type annotations

Merge proposed TypeScript annotations or Python type hints into existing code. Supply the intended signatures in the update rather than asking the merge step to design them.

### Apply several review comments together

Combine prepared changes to the same source into one update. Review the merged result as a single change instead of applying each suggestion separately.

### Process a maintenance queue

Have an agent prepare maintenance edits, then use Morph V3 Large to merge each update with its corresponding current source. Validate the results before accepting them.

### Merge edits during a language migration

Apply prepared signature and call-site changes in languages such as Java, Go, or Rust. Keep the migration decisions in the planning agent and send specific updates for merging.

## Overview

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

## Morph V3 Large in other agents

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

## More Claude Code guides

- [Morph V3 Fast Batch](https://spiral.ai/integrations/claude-code/morph-v3-fast-batch)
- [Morph V3 Large (batch)](https://spiral.ai/integrations/claude-code/morph-v3-large-batch)
- [Morph V3 Fast](https://spiral.ai/integrations/claude-code/morph-v3-fast)
- [Motif 3](https://spiral.ai/integrations/claude-code/motif-3)
- [Moondream 3.1](https://spiral.ai/integrations/claude-code/moondream-3-1)
- [Muse Ember](https://spiral.ai/integrations/claude-code/muse-ember)

## Questions about Morph V3 Large in Claude Code

**Can Claude Code use Morph V3 Large?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Morph V3 Large like any built-in tool.

**How much does Morph V3 Large cost in Claude Code?**

Up to $0.010159 per run at the default inputs. $1.17 per 1M input tokens, $2.47 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 Morph V3 Large in Claude Code?**

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

**How long does it take to set up Morph V3 Large in Claude Code?**

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

**Does Claude Code wait while Morph V3 Large runs?**

Morph V3 Large runs in the background. Claude Code starts the run, checks on it and gives you the text, json when it's ready.

**What is Morph V3 used for?**

Morph V3 applies proposed code changes to existing source and returns the complete updated code. Have your agent decide what to change and prepare the update before handing off the merge.

**How does Morph V3 Large differ from Morph V3 Fast?**

Morph recommends Morph V3 Large for complex refactors where merge accuracy matters more than speed. Morph V3 Fast targets quicker edit application.

**What should a Morph V3 prompt contain?**

Use <instruction> for the specific change, <code> for the complete original source, and <update> for the proposed edit. Mark unchanged sections with // ... existing code ... rather than silently omitting them.

**Which programming languages can Morph V3 edit?**

Morph documents code merging for Python, TypeScript, JavaScript, Go, Rust, Java, C++, Ruby, PHP, Swift, and Kotlin. Supply the original source and the proposed change in the same language.

**How much code can Morph V3 Large handle?**

Morph V3 Large has a 262,144-token context window and supports up to 131,072 output tokens. Budget for the complete updated source in the response, even when the requested edit is small.

