Spiral gives your agent every tool with one account. Browse the tools →

Claude · LLMReleased 2025-10-29

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.

GPT-oss Safeguard 20BClaude
Try asking
  • 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

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

  3. Click Connect

    The connector page opens. Connect takes you to Spiral in your browser.

Use the Spiral skill

  1. Send Claude 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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

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

OpenRouterLLM
OpenAI: gpt-oss-safeguard-20b
openai/gpt-oss-safeguard-20b

Settings you can ask for

Ask Claude for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number
Top p0 to 1
Max tokens1 to 65536

The most output tokens to generate.

Temperature0 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.

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.

Get started

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 Claude

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options