OpenRouter model

OpenAI: GPT-5.1-Codex

GPT-5.1-Codex is a specialized version of GPT-5.1 optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks....

Provider
OpenRouter
Availability
Available
Model ID
openai/gpt-5.1-codex
Snapshot
2026-10-07
Evaluation Verdict

OpenAI GPT-5.1 Codex is an autonomous coding model tuned specifically for repository refactoring, test-driven development, and multi-file codebases (72.0% SWE-bench, 1420 Coding Elo).

OpenAI: GPT-5.1-Codex Benchmarks & Agentic Accuracy

Verified primary research & developer preference metrics

Primary Sources Verified
SWE-bench Verified
72%
Autonomous Agent ModeOpenAI Codex System Card ↗
LiveCodeBench
75.5%
ThinkingLiveCodeBench ↗
LMSYS Coding Elo
1420Elo
Coding ArenaLMSYS Arena ↗
AIME 2024 / 2025
92%
ThinkingOpenAI Codex System Card ↗
Pricing ($ / 1M tokens)
$2.5/ $10
$0.6 cached readStandard API Pricing

What This Means in Real Software Development

  • Specialized in repository-level code synthesis with 72.0% on SWE-bench Verified.
  • Understands complex git worktree hierarchies and directory structures without hallucinations.
  • Native test-driven development loop: authors failing tests, inspects failures, and writes minimal passing patches.
  • Strong throughput ensures rapid completion of complex Coder jobs.

Swarm Multi-Agent Topology

Tier 1: Dedicated Systems CoderRole: Coder Subagent

Best Paired With: Claude 3.7 Sonnet as Lead Planner

Specialized architecture for dirty repository exploration, bug fixing, and test execution.

Git Worktree Isolation Advantage:

Dispatched into Swarm isolated worktrees to author and commit tested code patches.

What Developers & Practitioners Are Saying

Real-world field observations, production strengths, and developer consensus

Field Consensus

"Specialized Codex iteration designed for autonomous workspace execution and terminal tool use."

Verified Real-World Strengths

  • 72.0% SWE-bench Verified with native git patch generation
  • Deep understanding of modern build systems and CLI environments
  • High precision in multi-file refactoring

Production Caveats & Gaps

  • Requires careful prompt sandboxing to avoid unintended terminal commands
Benchmark Reality Check

What the benchmark tests: Measures autonomous CLI tool calling, patch authoring, and test execution.

Production caveat: Always execute in isolated worktrees to isolate experimental changes.

Primary Sources & Methodology Citations

OpenAI: GPT-5.1-Codex model overview

OpenAI: GPT-5.1-Codex is listed in the public Swarm catalog through OpenRouter. This page summarizes the verified catalog fields used by Swarm without claiming real-time access for every provider account.

Provider
OpenRouter
Family
OpenRouter
Context window
400K tokens
Thinking support
low · medium · high
Availability status
Available
Catalog ID
openrouter/openai/gpt-5.1-codex
  • Image input
  • Text input
  • Text output
  • Reasoning
  • Tools
  • Structured output
  • JSON

Run OpenAI: GPT-5.1-Codex in Swarm

Verified CLI workflow & multi-agent architecture

Quickstart Guide →
bash — swarm run
$swarm ctl model set --provider openrouter --model openrouter/openai/gpt-5.1-codex

# Or switch interactively inside the terminal TUI:

>/models

Subagent Role Matrix

Assign OpenAI: GPT-5.1-Codex to specialized system roles in ~/.swarm/config.json:

  • Primary / Planner: Orchestrates full task DAGs and multi-stage pipelines.
  • Coder Subagent: Generates code and unit tests inside private Git worktrees.
  • Finder Subagent: Performs read-only code search, symbol discovery, and mapping.
← All OpenRouter models

Public catalog snapshot. Catalog availability is not a real-time provider status or an access guarantee.