How to Use GPT-oss Safeguard 20B in Claude
GPT-oss Safeguard 20B classifies text against safety rules you supply and can explain each decision. Compared with GPT-oss Safeguard 120B, it targets lower latency and specialized moderation tasks.
Prompts to try with GPT-oss Safeguard 20B in Claude
Copy an example into Claude, or ask in your own words.
Use GPT-oss Safeguard 20B to judge these posts. Rule: prohibit direct threats of physical harm; allow criticism of an idea. Posts: 'Your argument is wrong' and 'I will hit you after class.' Give a decision and the applicable rule for each.
Use GPT-oss Safeguard 20B to screen these reviews. Rule: flag an explicit admission of payment for a positive review; do not flag enthusiasm alone. Reviews: 'They paid me to leave five stars' and 'I love this kettle.' Explain each label briefly.
Use GPT-oss Safeguard 20B to review this exchange. Rule: prohibit threats of violence; allow disagreement. Conversation: Alex says 'I disagree with the proposal.' Sam replies 'Then I will punch you.' Identify the violating message.
Use GPT-oss Safeguard 20B to classify these posts. Rule: prohibit offering cheating software for sale; allow reporting suspected cheating. Posts: 'Selling an undetectable cheat' and 'I think someone cheated in my match.' Return one label per post.
Use GPT-oss Safeguard 20B with high reasoning effort to check this borderline example. Rule: prohibit personal insults directed at another participant; allow criticism of their work. Text: 'Your analysis is careless.' Give a decision and explain which distinction controls it.
How to set up GPT-oss Safeguard 20B in Claude
Pick the way that suits you. Each takes about two minutes.
Use the Claude connector
- Add Spiral to Claude
Click Add Spiral in Claude above. Claude opens Add custom connector with Spiral and its URL filled in; check them and click Continue. Without the link: in Claude open Customize › Connectors › Add › Add custom connector and paste this URL:
https://api.spiral.ai/mcp
- Keep the detected sign-in and click Add
Claude finds Spiral's sign-in by itself: leave Sign in now and Use Claude's published identity selected.
- Click Connect
The connector page opens. Connect takes you to Spiral in your browser.
Use the Spiral skill
- Send Claude 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 GPT-oss Safeguard 20B
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": "openai/gpt-oss-safeguard-20b", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: Claude finds GPT-oss Safeguard 20B on Spiral, shows the price and runs it.
GPT-oss Safeguard 20B providers and prices
Spiral runs GPT-oss Safeguard 20B through OpenRouter. Open a card for today's price, with every fee included.
Up to $0.001602 per run at the default inputs. $0.0975 per 1M input tokens, $0.39 per 1M output tokens.
Settings you can ask for
Ask Claude for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | a whole number | ||
| Top p | 0 to 1 | ||
| Max tokens | 1 to 65536 | The most output tokens to generate. | |
| Temperature | 0 to 2 |
Every API field of OpenAI: gpt-oss-safeguard-20b is on its tool page: open its card above.
What can you do with GPT-oss Safeguard 20B in Claude?
Apply your own safety rules to posts, reviews, and conversations. Compare decisions with your intended boundaries to spot rules that need clearer definitions.
Community post review
Classify forum posts against written rules for threats, harassment, or prohibited promotion.
Assistant response checks
Review generated responses against your safety policy before deciding whether to show them.
Incoming message screening
Label user requests under your product's safety rules before passing them to another assistant.
Conversation review
Evaluate complete text conversations when a single message does not provide enough context for a policy decision.
Review authenticity screening
Flag product reviews that match your written criteria for suspected fabrication or undisclosed incentives.
Stored content labeling
Apply a defined safety taxonomy to archived text for a Trust and Safety review project.
More on GPT-oss Safeguard 20B and Claude
Overview
GPT-oss Safeguard 20B in other agents
Questions about GPT-oss Safeguard 20B in Claude
Can Claude use GPT-oss Safeguard 20B?
Yes. Add Spiral to Claude as an MCP server, and Claude can find and run GPT-oss Safeguard 20B like any built-in tool.
How much does GPT-oss Safeguard 20B cost in Claude?
Up to $0.001602 per run at the default inputs. $0.0975 per 1M input tokens, $0.39 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 plan is separate.
Do I need an OpenRouter account to use GPT-oss Safeguard 20B in Claude?
No. Spiral runs GPT-oss Safeguard 20B on its own OpenRouter account. You sign in to Spiral once and never paste a key.
How long does it take to set up GPT-oss Safeguard 20B in Claude?
About two minutes: add Spiral to Claude, then keep the detected sign-in and click Add, then click Connect.
Does Claude wait while GPT-oss Safeguard 20B runs?
GPT-oss Safeguard 20B runs in the background. Claude starts the run, checks on it and gives you the text, json when it's ready.
What is GPT-oss Safeguard good at?
It labels text according to safety policies you provide. Use it to review community posts, check assistant responses, or classify conversations under your own rules.
Can GPT-oss Safeguard replace a general chat or coding model?
OpenAI recommends it for safety classification. For general conversation or software development, OpenAI recommends GPT-oss instead.
How should I write a moderation policy?
Separate instructions, definitions, decision criteria, and examples. Define what is allowed as carefully as what violates the rules.
Which reasoning setting should I test?
Test low, medium, and high effort on the same labeled examples. Choose based on classification results and the response time your task allows.
What are its main limitations?
It handles text, so image or audio moderation requires a separate model. A dedicated classifier trained on a large labeled dataset can also outperform it on complex risks.
Start using GPT-oss Safeguard 20B in Claude
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Claude:
set up https://spiral.ai/SKILL.md


