Provider-native skills
Last updated: 2026-11-14T00:29:45-03:00 (UTC-3)
Some providers run skills themselves: the Anthropic Messages API accepts container.skills, a list of skills that the provider loads into its own code-execution container for that request. The gateway can let those requests through to the provider, under an explicit switch, and refuses them before any provider call when the request cannot be served as written.
Provider-native skills are not the gateway’s skill registry. The registry distributes text files to teams and never runs anything; native skills run at the provider, in the provider’s sandbox, with whatever the request sends. The gateway does not upload registry skills to a provider, does not run a skill itself, and does not offer the provider’s skill-management API.
| Flag | Default | What it turns on |
|---|---|---|
native_skills |
false |
Messages requests that carry container.skills; requires anthropic_messages |
The flag is a runtime switch (YAML features, the feature API, or the console’s feature page), applied to the next request. With feature plans on, the caller’s team plan must also include native_skills.
Supported profile
Section titled “Supported profile”| Field | Rule |
|---|---|
| Route | POST /v1/messages (native Anthropic Messages) |
| Alias | Every target is a provider with protocol: anthropic; an alias with any other target (translated Messages) is refused |
container |
A container ID string, or an object; only its skills member is checked, other members pass unchanged |
container.skills |
1 to 8 entries, each {type, skill_id, version?} with no other member, and no type/skill_id pair twice |
type |
anthropic (a provider-published skill such as xlsx) or custom (a skill uploaded to the provider account) |
skill_id |
1 to 128 characters: letters, digits, _ and -, starting with a letter or digit |
version |
Optional: latest or 1 to 32 digits |
The request is forwarded byte for byte, with the client’s anthropic-beta header (skills need the code-execution and skills betas the provider documents). The skills run in the provider account that the target’s credential belongs to: a custom skill must exist there.
A request with container.skills is never retried or sent to a fallback target, because the provider runs code for it. A request without container.skills, including one that reuses a container by ID, behaves exactly as before, whatever the flag says.
Refusals
Section titled “Refusals”Every refusal happens before quota, guardrails, the model rate counter and any provider call. The key and team requests-per-minute counters run earlier, at authentication, so a refused request still counts there, like any other refused request.
| Status | Code | When |
|---|---|---|
| 422 | native_skills_disabled |
container.skills is present and native_skills is off |
| 400 | invalid_native_skills |
The list breaks a rule in the table above, or the container object repeats a member name |
| 422 | native_skills_unsupported |
The alias has a target that is not a native Anthropic Messages target |
| 403 | entitlement_forbidden |
Feature plans are on and the team plan does not include native_skills |
Example
Section titled “Example”features: anthropic_messages: true native_skills: truecurl https://gateway.example.com/v1/messages \ -H "Authorization: Bearer $GATEWAY_KEY" \ -H "anthropic-beta: code-execution-2025-08-25,skills-2025-10-02" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet", "max_tokens": 1024, "container": {"skills": [{"type": "anthropic", "skill_id": "xlsx", "version": "latest"}]}, "tools": [{"type": "code_execution_20250825", "name": "code_execution"}], "messages": [{"role": "user", "content": "Build a quarterly budget spreadsheet"}] }'Limits
Section titled “Limits”- Untrusted execution at the provider. A skill runs code in the provider’s container with the request’s data. Turning on
native_skillsis the operator’s decision that this is acceptable for the providers behind native Messages aliases. - A provider with
protocol: anthropicbut another vendor’sbase_urlmay not implement skills; it then answers with its own error. - Other routes are not part of this profile: the gateway does not inspect skill fields of other APIs, and an explicitly authorized passthrough alias keeps its opaque-bytes contract.
- Files a skill produces are read through the provider’s Files API, which the gateway does not proxy.
Upgrade
Section titled “Upgrade”Before this release, container.skills reached Anthropic targets unchecked. It now needs native_skills: true; until it is turned on, such requests get 422 native_skills_disabled. Requests without container.skills are unchanged.
See also
Section titled “See also”- Skill registry — the gateway’s own distribution of skill files.
- Capabilities and protocol translation.