Prerequisites
Turn agents on or off
enable_agents is true by default. Administrators, and the users you give agent permissions to, see the agents area in Console.
Without a model connection the agents area is still there, and you can create identities, but nothing runs: schedules and events don’t start runs, Run once is refused and Create agent tells you that no model is configured.
To hide the agents UI and API for everyone, set enable_agents to false.
- YAML
- Environment variable
Connect a model
Add one or more connections undermodels. Each connection has an id and a provider: anthropic, openai-compatible or bedrock. What else it needs depends on the provider.
As environment variables, connections are numbered from zero (CDK_MODELS_0_..., CDK_MODELS_1_...) and property names lose their underscores, so default_model becomes DEFAULTMODEL. To read a key from a mounted secret file instead of the environment, set CDK_MODELS_0_APIKEY_FILE to the file path.
Anthropic
Console calls the Anthropic Messages API. Onlyid and api_key are required: provider defaults to anthropic, base_url to https://api.anthropic.com and default_model to claude-opus-5.
- YAML
- Environment variables
base_url only to route calls through a proxy or gateway that speaks the Anthropic API.
OpenAI-compatible endpoints
Useprovider: openai-compatible for OpenAI and for any other server that accepts the OpenAI Chat Completions format. base_url, api_key and default_model are all required, and base_url includes the version path, such as /v1.
- YAML
- Environment variables
base_url to the server’s address and default_model to the model name that server expects. We test against OpenAI. Other endpoints follow the same format, but we haven’t verified each one.
api_key is required even when the server ignores it, as Ollama does. Use any placeholder value.Amazon Bedrock
Useprovider: bedrock to run Claude models on Amazon Bedrock. base_url is required because it depends on the region, and you have to set default_model to the model or inference profile ID that Bedrock gives for the region, such as eu.anthropic.claude-sonnet-5.
A Bedrock connection authenticates in one of two ways, never both:
- AWS credentials: add an
awsblock with theregionand anamazonSecurityblock. Console exchanges the credentials for short-lived Bedrock tokens, so no model key is stored. - A Bedrock API key: set
api_keyand leave out theawsblock.
- YAML
- Environment variables
amazonSecurity takes one of these types:
With an
aws block, the AWS identity that Console uses needs bedrock:CallWithBearerToken and bedrock:InvokeModel on the models and inference profiles you use. With FromRole, it also needs sts:AssumeRole on the role.
Model connection properties
Console checks every connection when it starts. A mistake, such as a duplicate
id, a missing base_url or a connection with both api_key and aws, stops Console at startup with a message that names the connection.
Check the setup
Restart Console and sign in as an administrator. Use the switch at the top of the sidebar to change from Console to Agentic: the agents home page opens. If the switch isn’t there,enable_agents is false on the running instance.
Then go to Models. This page is read-only: to change a connection, update the configuration and restart Console. For each connection, it shows:
- the name and
id, with a Default badge on the first connection - how many agents use it, and how many of those are enabled
- the model and provider
- how it authenticates (API key or AWS identity), never the key itself
- the endpoint, token budget and timeout