How to Use Llama 3 8B Lunaris in opencode
Llama 3 8B Lunaris is a generalist and roleplay merge suited to character dialogue and scene drafts. Its creator recommends Llama 3 Instruct formatting, temperature 1.4, and minimum probability 0.1.
Prompts to try with Llama 3 8B Lunaris in opencode
Copy an example into opencode, or ask in your own words.
Use Llama 3 8B Lunaris to draft 12 greetings from the NPC briefs in this project. Keep each under 20 words and group them by character for review.
Read the project's story outline, then use Llama 3 8B Lunaris to draft a 300-word opening scene. Follow the existing viewpoint and stop before the player makes a decision.
Use Llama 3 8B Lunaris to draft a tavern conversation from the project's character notes. Request six exchanges, preserve established names, and flag any proposed lore additions.
Use Llama 3 8B Lunaris with temperature 1.4 and min_p 0.1 to draft three merchant refusals from the project's NPC brief. Keep each refusal under 40 words.
Use Llama 3 8B Lunaris to draft a 150-word passage and three player choices for the project's first quest. Show the proposed text alongside the existing dialogue format for review.
How to set up Llama 3 8B Lunaris in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- 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.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode 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 Llama 3 8B Lunaris
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": "sao10k/l3-lunaris-8b", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: opencode finds Llama 3 8B Lunaris on Spiral, shows the price and runs it.
Llama 3 8B Lunaris providers and prices
Spiral runs Llama 3 8B Lunaris through OpenRouter. Open a card for today's price, with every fee included.
Up to $0.00027 per run at the default inputs. $0.052 per 1M input tokens, $0.065 per 1M output tokens.
Settings you can ask for
Ask opencode 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 | ||
| Logprobs | on or off | ||
| Max tokens | 1 to 7372 | The most output tokens to generate. | |
| Temperature | 0 to 2 | ||
| Top logprobs | 0 to 20 | ||
| Presence penalty | -2 to 2 | ||
| Frequency penalty | -2 to 2 | ||
| Repetition penalty | 0 to 2 |
Every API field of Sao10K: Llama 3 8B Lunaris is on its tool page: open its card above.
What can you do with Llama 3 8B Lunaris in opencode?
Draft game dialogue and interactive fiction from your project's character briefs with Lunaris. Use the coding agent to check the generated text against your project's lore and dialogue conventions.
Interactive character conversations
Give Lunaris a character brief and opening situation, then request one reply at a time while you control the other character.
Game NPC dialogue
Draft greetings, refusals, and quest hints using an NPC's motives and vocabulary. Review the lines against the game's established lore.
Short fiction scenes
Turn a scene outline into a compact draft with a specified viewpoint, conflict, and ending beat.
Branching narrative drafts
Request a short story passage followed by three choices, each with a distinct consequence for the next scene.
Character voice experiments
Rewrite a fictional exchange with different levels of formality, suspicion, or humor to compare possible character voices.
Tabletop encounter preparation
Draft an encounter opening, an NPC's secret, and a few lines of dialogue from a compact campaign brief.
More on Llama 3 8B Lunaris and opencode
Overview
Llama 3 8B Lunaris in other agents
Questions about Llama 3 8B Lunaris in opencode
Can opencode use Llama 3 8B Lunaris?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Llama 3 8B Lunaris like any built-in tool.
How much does Llama 3 8B Lunaris cost in opencode?
Up to $0.00027 per run at the default inputs. $0.052 per 1M input tokens, $0.065 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 Llama 3 8B Lunaris in opencode?
No. Spiral runs Llama 3 8B Lunaris on its own OpenRouter account. You sign in to Spiral once and never paste a key.
How long does it take to set up Llama 3 8B Lunaris in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Llama 3 8B Lunaris runs?
Llama 3 8B Lunaris runs in the background. opencode starts the run, checks on it and gives you the text, json when it's ready.
What should I use Lunaris for?
The creator describes Lunaris as a generalist and roleplay model. Suggested starting tasks include character conversations, game dialogue, and short fiction drafts.
Can Lunaris handle a long-running story?
Its configuration sets an 8,192-token position limit. For an ongoing story, carry forward a short recap, essential character traits, and the current scene instead of the full transcript.
Which settings should I try first?
Start with the creator's recommendations: temperature 1.4 and minimum probability 0.1. The recommended prompt format is Llama 3 Instruct.
How should I prompt Lunaris for roleplay?
For its stated roleplay focus, try a brief containing the character's goal, voice, setting, and current conflict. Specify who controls each character and request one scene or conversational turn at a time.
Which language is documented for Lunaris?
The creator's repository labels Lunaris as English. Use English as the documented starting point and test other languages against your own examples.
Start using Llama 3 8B Lunaris in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


