Agent models
Every managed agent runs on a model you choose, with your own API key. You pick the provider and the models when you create the agent, in the web app or with the CLI, and you can change them later. Each agent has its own provider and key, so two agents in the same workspace can use different providers.
An agent never uses AWS credentials for its model. The roles in your onboarding template give agents access to your resources, not to Bedrock, so the account you connect as an environment needs no model access of its own.
Providers
Section titled “Providers”| Provider | What you need | Who bills you |
|---|---|---|
| Amazon Bedrock | A Bedrock API key and the AWS region to call. See Amazon Bedrock below. | AWS |
| Anthropic API | An Anthropic API key. | Anthropic |
| OpenAI API (beta) | An OpenAI API key, or the key and base URL of an OpenAI-compatible endpoint such as Azure OpenAI. | The provider |
For each agent you set:
- Main model: the model for the agent’s real work, as the provider names it.
- Fast model (optional): a cheaper model for background chores such as task summaries. Leave it blank to use the main model.
- API key: stored as a secret and never shown again, not even to you. The agent’s page only shows its last four characters.
New agents start on the provider’s latest models, for example Claude Opus 5.5 as the main model and Claude Haiku 5.5 as the fast model. Any model id the provider accepts can be typed in.
Set the model with the CLI
Section titled “Set the model with the CLI”stratonext agent create and stratonext agent update take the same settings as the web app.
The API key is never passed as a flag, so it stays out of your shell history and out of your
coding agent’s chat. Export it in the shell that runs the CLI, or leave it unset to be prompted for
it at a terminal:
export STRATONEXT_MODEL_API_KEY=<your-api-key>stratonext agent create --name "ops-agent" --model-provider BEDROCK --model-region us-east-1| Flag | Purpose |
|---|---|
--model-provider |
BEDROCK, ANTHROPIC, or OPEN_AI. Required for a managed agent. |
--model |
Main model id. Defaults to the provider’s latest model. |
--fast-model |
Fast model id. Defaults to the provider’s latest cheap model when --model is omitted. |
--model-region |
Bedrock only: the region to call. Defaults to us-east-1. |
--model-base-url |
OpenAI only: the endpoint of an OpenAI-compatible API, such as Azure OpenAI. |
agent update with --model-provider replaces the agent’s whole model. Without
STRATONEXT_MODEL_API_KEY it keeps the stored key, as long as the provider stays the same.
Changing an agent’s provider, models, or key redeploys the agent. StratoNext does not test the key when you save it: a wrong or expired key shows up as a failed task with the provider’s error.
Amazon Bedrock
Section titled “Amazon Bedrock”The Bedrock provider calls the Bedrock runtime in the region you choose, authenticated with a Bedrock API key. The prerequisites below apply to the AWS account the key belongs to. It does not have to be the account you connected as an environment.
1. Enable access to the models
Section titled “1. Enable access to the models”Serverless models are available in every account, but Anthropic models need a one-time setup per account before the first call. You can do it in the Bedrock console, by opening the model in the model catalog or playground, or with the AWS CLI as shown below.
Run these commands with credentials that can manage Bedrock and AWS Marketplace subscriptions, for example an admin profile. The agent’s API key usually lacks the Marketplace permissions, so do not rely on the agent’s first call to enable access.
First, submit Anthropic’s use case details. This is needed once per account, or once in your AWS Organizations management account to cover every member account. Skip it if your account has used Anthropic models on Bedrock before.
export AWS_PROFILE=<admin-profile>export AWS_REGION=us-east-1
aws bedrock put-use-case-for-model-access --form-data "$(printf '%s' '{ "companyName": "Example Corp", "companyWebsite": "https://example.com", "intendedUsers": "0", "industryOption": "Technology", "otherIndustryOption": "", "useCases": "Operations agents that investigate and report on our AWS environments."}' | base64 | tr -d '\n')"Then accept the model’s agreement. This creates the AWS Marketplace subscription for the model, so there is no separate Marketplace step. Repeat it for each model your agents use, here the default main and fast models:
for MODEL in anthropic.claude-opus-5-5 anthropic.claude-haiku-5-5; do TOKEN=$(aws bedrock list-foundation-model-agreement-offers --model-id "$MODEL" \ --query 'offers[0].offerToken' --output text) aws bedrock create-foundation-model-agreement --model-id "$MODEL" --offer-token "$TOKEN"doneEach call returns the model id:
{ "modelId": "anthropic.claude-haiku-5-5"}Check that a model is ready:
aws bedrock get-foundation-model-availability --model-id anthropic.claude-haiku-5-5For more detail, see the AWS guide on accessing Amazon Bedrock foundation models.
2. Create a Bedrock API key
Section titled “2. Create a Bedrock API key”Generate a key on the API keys page of the Bedrock console, in the same account. A long-term key expires on the date you set, and the agent stops working when it does, so put a reminder in your calendar or rotate it from the agent’s page before then.
The key’s IAM user must be allowed bedrock:InvokeModel and
bedrock:InvokeModelWithResponseStream. The policy the console attaches to a long-term key grants
both. If you write your own policy, allow both the inference profile and the foundation model
ARNs, since a global. inference profile routes calls to the model in other regions.
3. Configure the agent
Section titled “3. Configure the agent”When you create the agent in the web app, or later from its page:
- Choose Amazon Bedrock as the provider.
- Pick the Region whose Bedrock runtime the agent calls. It defaults to US East
(N. Virginia),
us-east-1. - Keep the suggested models or type other inference profile ids, such as
global.anthropic.claude-sonnet-5-5. - Paste the Bedrock API key.
With the CLI, use --model-provider BEDROCK and put the Bedrock API key in
STRATONEXT_MODEL_API_KEY, as shown in Set the model with the CLI.
Troubleshooting
Section titled “Troubleshooting”“Model is not available for this account”
Section titled ““Model is not available for this account””A task fails, or the Bedrock console playground shows, an error like:
AccessDeniedException: anthropic.claude-haiku-5-5 is not available for this account.Work through these causes in order:
- The model’s access is not set up. Check that the use case details were submitted and the
model’s agreement accepted, as in Enable access to the models.
get-foundation-model-availabilityshows the state. Right after submitting the use case details, allow about 15 minutes. - The account’s quota for the model is zero. Some AWS accounts, often new ones, start with a quota of zero for some models, even after every agreement is accepted. This can happen for any model, not only Anthropic’s. The error reads the same as missing access, so check the quotas once access is confirmed.
List the account’s Bedrock quotas for a model in the region the agent calls:
aws service-quotas list-service-quotas --service-code bedrock \ --query "Quotas[?contains(QuotaName, 'Claude Haiku 5.5')].[QuotaName,QuotaCode,Value]" \ --output tableThe agent’s suggested models use global cross-Region inference profiles, so look at the
global cross-Region tokens per minute and requests per minute quotas. If they are 0, request
an increase, from the Service Quotas console or with the CLI:
aws service-quotas request-service-quota-increase --service-code bedrock \ --quota-code <quota-code> --desired-value <value>AWS reviews the request, which can take from minutes to a few days. Until it is approved, choose a model with a non-zero quota, or another provider.
The agent stopped working after weeks or months
Section titled “The agent stopped working after weeks or months”A long-term Bedrock API key expires on the date you set when you generated it. Generate a new key and set it on the agent.
Billing
Section titled “Billing”Model usage is billed to you by the provider you chose, under your own account with it. StratoNext does not mark up or resell model tokens. The token counts each task used are shown on the task.