Use Claude text editor with Claude Sonnet 5

by AnthropicCode

Claude Sonnet 5 uses Claude text editor through Opper on the Messages endpoint, passed through as Anthropic defines it.

UseClaude text editorwithin

Add Claude text editor to Claude Sonnet 5

Set up with agents

Paste this into your coding agent (Claude Code, Cursor, Codex, and more) and it will set up and build with Opper for you.

Get your API key

In your code

curl https://api.opper.ai/v3/compat/v1/messages \
-H "Authorization: Bearer $OPPER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "anthropic/claude-sonnet-5", "max_tokens": 1024,
"messages": [{"role": "user", "content": "List the files in this repo."}],
"tools": [{"type": "text_editor_20250728", "name": "str_replace_based_edit_tool"}]}'

Where you can run it

Claude Sonnet 5 runs Claude text editor on the routes below.

ProviderRegionZero data retentionTrainingInputOutputCache read
EUNo$2.20$11.00$0.22$2.75 write
EUNo$2.20$11.00$0.22$2.75 write
USNo$2.00$10.00$0.20$2.50 write
MultiNo$2.00$10.00$0.20$2.50 write

The model

by Anthropic

Claude Sonnet 5 is Anthropic's balanced production model, bringing near-Opus agentic coding and tool use to a 1M token context window.

Available on

Pricing from$2.00/ 1M input$10.00/ 1M output$0.20/ 1M cache read1Mcontext

Privacy

ZDR
Training
No
Region
US, EU, Multi

Use Claude text editor with other models

Step-by-step setup for Claude text editor on each of these models through Opper.

More tools on Opper

Use Claude text editor with Claude Sonnet 5

One key, 700+ models, a choice of region, and zero data retention. Tools run in the same request, with every call in your traces.

Get startedView Documentation