How to Use Palmyra X5 in VS Code
Palmyra X5 suits document-heavy work: summarizing research, classifying feedback, and drafting reports from supplied evidence. Its 1 million token context window accommodates long inputs, while each response is capped at 8,192 tokens.
Prompts to try with Palmyra X5 in VS Code
Copy an example into VS Code, or ask in your own words.
Use Palmyra X5 to draft a Python script that reads the project's customer feedback CSV and groups rows by existing category labels. Inspect the sample data first, preserve row IDs, and include tests for missing labels and empty rows.
Use Palmyra X5 to summarize the technical reports in this project's docs directory. Produce a 700-word brief with shared findings, disagreements, and file references for each conclusion.
Use Palmyra X5 to compare the project's help articles with its current product specification. Propose corrections with a file reference and supporting passage for each edit.
Use Palmyra X5 to draft a TypeScript validator for the JSON report structure defined in this repository. Include examples covering valid input, missing required properties, and incorrect value types.
Use Palmyra X5 to turn the requirements in this project's specification into an implementation outline. Identify missing requirements, then draft only the first module and its validation cases.
How to set up Palmyra X5 in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS 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 Palmyra X5
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": "writer/palmyra-x5", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: VS Code finds Palmyra X5 on Spiral, shows the price and runs it.
Palmyra X5 providers and prices
Spiral runs Palmyra X5 through OpenRouter. Open a card for today's price, with every fee included.
Up to $0.031977 per run at the default inputs. $0.78 per 1M input tokens, $7.80 per 1M output tokens.
Settings you can ask for
Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Top k | a whole number from 0 | ||
| Top p | 0 to 1 | ||
| Max tokens | 1 to 8192 | The most output tokens to generate. | |
| Temperature | 0 to 2 |
Every API field of Writer: Palmyra X5 is on its tool page: open its card above.
What can you do with Palmyra X5 in VS Code?
Turn project requirements into code drafts and long technical documents into reviewable summaries with Palmyra X5. Give it the relevant project files, a defined deliverable, and validation cases.
Customer feedback reports
Use Palmyra X5 to organize survey responses by theme and sentiment. Request representative quotations and response IDs so each finding can be checked.
Research summaries
Give Palmyra X5 the text of several technical reports or research papers. Ask for shared findings, disagreements, and unanswered questions with source references.
Contract review preparation
Ask Palmyra X5 to extract obligations, deadlines, and clauses needing review from contract text. Keep the source passage beside each extracted item for the reviewer.
Financial reporting drafts
Use Palmyra X5 to summarize supplied annual reports and market research into an executive brief. Require a source reference for every figure and separate reported results from interpretation.
Support request triage
Ask Palmyra X5 to classify incoming support text using your categories and urgency rules. Include an evidence excerpt and send ambiguous requests for review.
Knowledge base refreshes
Give Palmyra X5 current product information alongside existing article text. Request proposed corrections and a reason for each edit.
Multilingual business drafts
Use Palmyra X5 to draft support replies or product explanations in a supported language. Supply the audience, approved terminology, and examples of the desired dialect.
Code generation
Ask Palmyra X5 to draft scripts from explicit requirements and sample inputs. Request validation cases, then run and review the generated code.
More on Palmyra X5 and VS Code
Overview
Palmyra X5 in other agents
More VS Code guides
Questions about Palmyra X5 in VS Code
Can VS Code use Palmyra X5?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Palmyra X5 like any built-in tool.
How much does Palmyra X5 cost in VS Code?
Up to $0.031977 per run at the default inputs. $0.78 per 1M input tokens, $7.80 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.
Do I need an OpenRouter account to use Palmyra X5 in VS Code?
No. Spiral runs Palmyra X5 on its own OpenRouter account. You sign in to Spiral once and never paste a key.
How long does it take to set up Palmyra X5 in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while Palmyra X5 runs?
Palmyra X5 runs in the background. VS Code starts the run, checks on it and gives you the text, json when it's ready.
What is Palmyra X5 best suited for?
Use it to turn large amounts of supplied text into reports, summaries, classifications, and drafts. Documented uses include customer feedback analysis, research synthesis, financial reporting, and legal document analysis.
How much text can Palmyra X5 handle?
Its context window is approximately 1 million tokens, and its maximum response is 8,192 tokens. For a long deliverable, request an outline first and draft individual sections in follow-up requests.
Can Palmyra X5 write in languages other than English?
Yes. WRITER documents more than 30 languages, including Spanish, French, Arabic, Hindi, and Chinese. For a specific dialect, write the prompt in that language and dialect.
Can Palmyra X5 generate code and JSON?
Yes, it supports code generation and structured outputs. When requesting JSON, specify the expected structure and check the result before using it.
Which temperature should I use?
Use a lower temperature for classification, extraction, and questions about supplied evidence. Use a higher temperature when you want more varied content or ideas.
Start using Palmyra X5 in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


