[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [MythoMax 13B](https://spiral.ai/integrations/opencode/mythomax-13b)

# How to Use MythoMax 13B in opencode

MythoMax 13B is a Llama 2 model for character roleplay and storywriting. Use it to draft dialogue, fictional scenes, and descriptive prose with a clear character brief.

|  |  |
| --- | --- |
| Model | MythoMax 13B |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.000532 per run at the default inputs. $0.104 per 1M input tokens, $0.143 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with MythoMax 13B in opencode

- Use MythoMax 13B to draft six greetings for the first shopkeeper defined in this project's character files. Read the relevant character brief, preserve established names and lore, and keep each greeting under 35 words.
- Use MythoMax 13B to draft a 300-word opening scene for this project's interactive story. Read its premise and style guide, introduce one immediate conflict, and end before the player makes a decision.
- Use MythoMax 13B to write three refusal lines for each merchant in the project's dialogue data. Supply one merchant brief per request, keep each line under 25 words, and present the drafts for review.
- Use MythoMax 13B to draft a 200-word journal entry about the earliest expedition described in this project's lore. Include the relevant lore excerpt, preserve its dates and names, and introduce no new historical events.
- Use MythoMax 13B to draft the next reply from the first NPC in the project's sample conversation. Supply that character's brief and the latest exchange, request one reply under 100 words, and leave the player's actions unwritten.

## How to set up MythoMax 13B in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 MythoMax 13B**: 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": "gryphe/mythomax-l2-13b",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: opencode finds MythoMax 13B on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## MythoMax 13B tools and prices

- [MythoMax 13B](https://spiral.ai/tools/openrouter/gryphe/mythomax-l2-13b) (OpenRouter): Up to $0.000532 per run at the default inputs. $0.104 per 1M input tokens, $0.143 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| min_p | 0 to 1 | — |  |
| top_k | 0 to … | — |  |
| top_p | 0 to 1 | — |  |
| logprobs |  | — |  |

## What can you do with MythoMax 13B in opencode?

Draft fictional dialogue and narrative content for a game or interactive story with MythoMax 13B. Have the coding agent select relevant project excerpts and save reviewed prose in the project's existing content format.

### Game character dialogue

Draft a shopkeeper's greeting, refusal, and bargain response from a short personality brief.

### Interactive fiction scenes

Write a short encounter that ends at a player decision, leaving the player's actions unwritten.

### Tabletop session preparation

Prepare a location description, an NPC introduction, and a rumor that gives players a reason to investigate.

### Short fiction drafts

Turn a premise into a focused scene with a clear viewpoint, conflict, and ending.

### Character voice exploration

Write the same fictional exchange in several voices to compare diction, rhythm, and attitude.

### Worldbuilding prose

Draft fictional tavern notices, expedition journals, and local legends from a compact setting brief.

### Dialogue rehearsal for writers

Play one character in an improvised exchange so a writer can test another character's questions and reactions.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## MythoMax 13B in other agents

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

## More opencode guides

- [Muse Wonder](https://spiral.ai/integrations/opencode/muse-wonder)
- [Nemotron 3 Nano 30B A3B](https://spiral.ai/integrations/opencode/nemotron-3-nano-30b-a3b)
- [Muse Spark Open](https://spiral.ai/integrations/opencode/muse-spark-open)
- [Nemotron 3 Super](https://spiral.ai/integrations/opencode/nemotron-3-super)
- [Muse Spark 1.3 Contributor](https://spiral.ai/integrations/opencode/muse-spark-1-3-contributor)
- [Nemotron 3 Ultra](https://spiral.ai/integrations/opencode/nemotron-3-ultra)

## Questions about MythoMax 13B in opencode

**Can opencode use MythoMax 13B?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run MythoMax 13B like any built-in tool.

**How much does MythoMax 13B cost in opencode?**

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

**Do I need an OpenRouter account to use MythoMax 13B in opencode?**

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

**How long does it take to set up MythoMax 13B in opencode?**

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

**Does opencode wait while MythoMax 13B runs?**

MythoMax 13B runs in the background. opencode starts the run, checks on it and gives you the text, json when it's ready.

**What is MythoMax 13B good at?**

Gryphe specifically identifies roleplay and storywriting. Try it for character exchanges, short fiction, and scene descriptions.

**How should I prompt a character conversation?**

Give the character's personality, goal, relationship to the other speaker, and the immediate situation. Ask for one reply and specify whose dialogue and actions it should write.

**What prompt format does MythoMax 13B use?**

The maker recommends Alpaca formatting: a system or character brief, then a ### Instruction: section, followed by ### Response:. Keep the character description separate from the task.

**How much story context can MythoMax 13B handle?**

OpenRouter currently lists 8,192 tokens, while the original model configuration specifies 4,096 positions. For longer fiction, work scene by scene and carry forward a compact recap of established events.

**Which setting should I experiment with first?**

Try temperature first, keeping the character brief and scene unchanged while comparing drafts. It changes next-token probabilities; choose the result that best preserves the voice and plot constraints.

