# Context-window floors on anyrouter/auto, free, byok, and the other virtual ids

> Append [1m] or [500k] to any first-party virtual id to keep only members with at least that context window. Not a new listing. The same preset, with a token floor.

- Date: 2026-09-15
- HTML: https://anyrouter.dev/blog/releases/2026-09-15-virtual-context

## Models

- `anyrouter/auto` (AnyRouter Auto) — anyrouter/auto[1m] / [500k]
- `anyrouter/free` (AnyRouter Free) — anyrouter/free[1m] / [500k]
- `anyrouter/byok` (AnyRouter BYOK) — anyrouter/byok[1m] / [500k]
- `anyrouter/coding` (AnyRouter Coding)
- `anyrouter/agent` (AnyRouter Agent)
- `anyrouter/hermes` (AnyRouter Hermes)
- `anyrouter/cowork` (AnyRouter Cowork)
- `anyrouter/latest` (AnyRouter Latest)

## Notes

First-party virtual ids now accept a context-window suffix. [`anyrouter/auto[1m]`](https://anyrouter.dev/model/anyrouter/auto) and [`anyrouter/auto[500k]`](https://anyrouter.dev/model/anyrouter/auto) are the same preset as [`anyrouter/auto`](https://anyrouter.dev/model/anyrouter/auto), with `provider.min_context` set to 1,000,000 or 500,000 tokens. The same spelling works on [`anyrouter/free`](https://anyrouter.dev/model/anyrouter/free), [`anyrouter/byok`](https://anyrouter.dev/model/anyrouter/byok), [`anyrouter/coding`](https://anyrouter.dev/model/anyrouter/coding), [`anyrouter/agent`](https://anyrouter.dev/model/anyrouter/agent), [`anyrouter/hermes`](https://anyrouter.dev/model/anyrouter/hermes), [`anyrouter/cowork`](https://anyrouter.dev/model/anyrouter/cowork), and [`anyrouter/latest`](https://anyrouter.dev/model/anyrouter/latest). There is no extra catalog row for the suffix.

Claude Code strips `[1m]` before the gateway, so `anyr claude` peels the floor into `CLAUDE_CODE_EXTRA_BODY`. A bare `anyrouter/auto` without the floor can still pick a high-usage member. Model pages list the shortcuts and can preview the ≥500k / ≥1M member list.

- App code: [Vercel AI SDK](https://anyrouter.dev/use-cases/ai-sdk) or [OpenAI SDK](https://anyrouter.dev/use-cases/openai-sdk).
- Coding agent: `anyr claude` / `anyr opencode` / `anyr codex` ([playbook](https://anyrouter.dev/use-cases/coding-agents)).
- No code: [playground](https://anyrouter.dev/playground?model=anyrouter/auto).

Try it in the [Vercel AI SDK](https://anyrouter.dev/use-cases/ai-sdk). `createAnyRouter()` reads `ANYROUTER_API_KEY`:

```ts
import { createAnyRouter } from "@anyr/ai-sdk-provider"
import { generateText } from "ai"

const anyrouter = createAnyRouter()

const { text } = await generateText({
  model: anyrouter("anyrouter/auto[1m]"),
  prompt: "Summarize this diff in three bullets.",
})
console.log(text)
```

_generateText with a 1M floor on auto._

Already on the OpenAI SDK? [OpenAI SDK playbook](https://anyrouter.dev/use-cases/openai-sdk):

### OpenAI SDK

```ts
import OpenAI from "openai"

const client = new OpenAI({
  baseURL: "https://anyrouter.dev/api/v1",
  apiKey: process.env.ANYROUTER_API_KEY,
})

const res = await client.chat.completions.create({
  model: "anyrouter/auto[1m]",
  messages: [{ role: "user", content: "Hello" }],
})
console.log(res.choices[0]?.message.content)
```

### curl

```bash
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"anyrouter/auto[1m]","messages":[{"role":"user","content":"Hello"}]}'
```

Or launch a coding agent through the `anyr` CLI:

### Claude Code

```bash
curl -fsSL https://anyrouter.dev/cli.sh | bash
anyr login
anyr claude --model "anyrouter/auto[1m]"
```

### OpenCode

```bash
curl -fsSL https://anyrouter.dev/cli.sh | bash
anyr login
anyr opencode --model "anyrouter/free[1m]"
```

### Codex

```bash
curl -fsSL https://anyrouter.dev/cli.sh | bash
anyr login
anyr codex --model "anyrouter/auto[500k]"
```

More: [AI SDK](https://anyrouter.dev/use-cases/ai-sdk) · [OpenAI SDK](https://anyrouter.dev/use-cases/openai-sdk) · [coding agents](https://anyrouter.dev/use-cases/coding-agents) · [Claude Code](https://anyrouter.dev/use-cases/claude-code).

No terminal? Open the playground and send a first message.

[Try in playground](https://anyrouter.dev/playground?model=anyrouter/auto)
