Anthropic ships the strongest model family for tool-using agents in 2026. Sonnet handles plan-first coordination, codebase-wide refactors, and long structured outputs without losing the thread. Haiku is the cheapest serious option for exploration and classification turns. Pairing them in one agent is the single biggest cost lever in the playbook.
Models worth knowing about
- Best-in-class tool-use reliability across the family
- Clean handling of structured outputs and citations
- Sonnet plus Haiku gives a natural premium plus fast split
- Prompt caching cuts repeated-context cost meaningfully
- Pricing per token is on the higher end among frontier providers
- Rate limits on free tiers can bite during long sessions
- Region availability still has gaps
Drop into your app.yaml
1brain:2 provider: anthropic3 model: claude-sonnet-4-64 credential:5 ref: anthropic_main6 scope: per_user7 provider: anthropic8 config:9 api_key: "{{env.ANTHROPIC_API_KEY}}" # dev fallback10 temperature: 0.211 max_tokens: 8192Register your Anthropic Claude key once in the encrypted credential vault, then reference it from any agent by name. The runtime resolves the secret at session start, never bakes it into the app bundle, and rotates without redeploys.
# one-time setup: register the credential
digitorn credentials create \
--provider anthropic \
--label anthropic_main \
--scope per_user \
-f api_key=...credential: block (shown above). The legacy {{env.X}} template still works as a development fallback.Install Digitorn and chat with your Anthropic Claude agent
# 1. install the runtime
curl -sSL https://digitorn.ai/install | sh
# 2. register your Anthropic Claude credential in the vault
digitorn credentials create --provider anthropic --label anthropic_main -f api_key=...
# 3. install a starter agent and chat
digitorn install hub://digitorn/digitorn-code
digitorn chat digitorn-codeHow to build a Claude Code clone in YAML
Get the next post in your inbox.
Engineering notes from the Digitorn team. No marketing, no launch announcements, no "10 prompts that will change your life". Just the things we write that we'd want to read.