Azure and Amazon Bedrock
Azure AI Foundry and Amazon Bedrock are cloud model services that Octant adds as model endpoints, signed in with a key or with your organization's account.
Both run Octant Harness, so they behave like the other model endpoints: the same row states, the same Verify tools step, and Octant's tools only on verified models. Both are added under Settings → Octant Harness → Model endpoints → Add endpoint.
Azure AI Foundry
Azure AI Foundry uses the OpenAI-compatible v1 profile.
- The base URL must end with
/openai/v1/. - It signs in with an API key or your organization account.
- It needs at least one deployment. In Connect, type each deployment name and press Enter.
- Models lists your deployments. An Azure AI Foundry provider offers only its configured deployments, even when the resource lists every base model.
- Some deployments never report the model's context window. The lead then gets no figure: the context tool says the context is unavailable instead of reporting room against an estimate.
If you enter an Azure address as OpenAI-compatible, Octant offers Switch to Azure AI Foundry.
Add Azure AI Foundry with a key
- Open Add endpoint and choose Azure AI Foundry.
- Enter a name, the resource's address, and the API key.
- Name at least one deployment.
- Choose Check and add.
- Run Verify tools on the deployments that should use Octant's tools.
Azure AI Foundry with your organization account
An Azure AI Foundry endpoint can sign in with your organization's Microsoft Entra ID account instead of an API key. Requests then run as you, under your organization's policies, and no key is stored.
Your organization's administrator prepares this once:
- Registers an application in your Microsoft Entra ID tenant for Octant. It is a public client: under Authentication, add the Mobile and desktop applications platform with the redirect URI
http://127.0.0.1/oauth/callback. It needs no client secret or certificate. - Under API permissions, adds the delegated permission Azure Cognitive Services › user_impersonation, and grants consent for the organization if your tenant requires it.
- Gives you a role on the Azure AI Foundry resource that lets you call its models, such as Cognitive Services OpenAI User.
The administrator gives you the Directory (tenant) ID and the Application (client) ID from the registration's overview. Then:
- In Add endpoint, choose Azure AI Foundry, enter a name and the resource's address, and set Sign in with to Organization account (Microsoft Entra ID).
- Paste the tenant ID and the client ID. Octant accepts only the IDs themselves, not a domain name or
common, and saves them in lowercase. - Name at least one deployment and choose Check and add. The endpoint reads Sign in to use.
- Open the endpoint and choose Sign in with your organization. Your browser opens your organization's sign-in page on
login.microsoftonline.com. When you finish there, the endpoint shows who is signed in and checks itself.
On a host without the Octant desktop app, such as a headless Linux host, turn on Allow sign-in with a code from this host's terminal under the endpoint's Name and address, and sign in with octant provider sign-in instead. The administrator's registration must then also set Authentication › Allow public client flows to Yes.
The address must be on openai.azure.com, services.ai.azure.com, or cognitiveservices.azure.com. Once you have opened the endpoint, its row also says who is signed in.
When the sign-in needs you
- Sign in again: your organization wants you to sign in in person again, for example to complete multi-factor authentication. Octant keeps the sign-in until you do. Signing in again replaces it.
- Signed out: the sign-in ended. It expired, your password changed, or an administrator revoked it. Sign in again.
- No access: you are signed in, but your account has no role on the resource. Ask an administrator for one.
- Sign-in doesn't match: the sign-in was for another tenant, application, or address. Sign in again for this endpoint.
Changing the tenant ID, the client ID, or the address signs the endpoint out. Switching between an API key and the organization account removes what was stored for the other. Sign out removes the sign-in from this computer only: your organization session continues until your organization ends it.
A device paired for remote use can run turns on an endpoint you have signed in, but it cannot sign in or out. The sign-in itself stays in Octant's credential broker. Each request carries only a short-lived token for that one endpoint.
Amazon Bedrock with your organization's single sign-on
Octant's host can sign Amazon Bedrock requests with your organization's single sign-on (AWS IAM Identity Center) instead of a Bedrock API key. You sign in once at your organization's access portal. Octant's credential broker keeps that sign-in and the temporary credentials it gives for one account and role, and signs each request itself. No key is stored in Octant's settings or sent anywhere but Amazon Bedrock, and Octant's server never holds one.
Your organization's administrator assigns you a permission set in one account that allows bedrock:InvokeModel and bedrock:InvokeModelWithResponseStream on the models you use. They give you:
- the access portal URL (
https://<name>.awsapps.com/start); - the region the portal runs in;
- the account ID;
- the permission set's name.
Only the commercial AWS regions are supported.
Add Amazon Bedrock
- Open Settings → Octant Harness → Model endpoints, choose Add endpoint, then Amazon Bedrock.
- Enter a name, the region your models run in, the access portal URL, the portal's region, the 12-digit account ID, the permission set's name, and the model IDs you use. Bedrock does not list the models a role may use, so name each one. It takes no key and no address.
- Choose Check and add. The row reads Sign in to use and names the command to run.
- In a terminal on the host, run
octant provider sign-in. - Back in Settings, choose Check again.
Single sign-on for an Amazon Bedrock endpoint starts only with octant provider sign-in in a terminal on the host. The command shows a page on device.sso.<region>.amazonaws.com or your access portal, and a code to enter there. Settings never shows the code.
After you sign in, the endpoint's row and page say Signed in as the role and account. Sign out asks your organization's portal to end the session and removes the sign-in from this computer.
- Changing the endpoint's region, portal, account, or role, or removing it, ends that sign-in. Changing only its models keeps it.
- Each model is checked on its first request. A model the permission set does not allow reads No access.
- The endpoint does not send attached files.
Amazon Bedrock with your AWS profile or access keys
A signed-out Amazon Bedrock endpoint's page also offers two other ways to sign in, in its Sign-in section:
- Use my AWS profile: enter a profile name and choose Connect profile. Octant's credential broker reads the profile in place each time it renews, as the AWS command line does: keys in the shared files, the token
aws sso logincached, acredential_process, or a role profile. Octant stores only the profile's name.- Role profiles work with
source_profilechains up to five hops,credential_source = Environment, and web identity. - MFA role profiles (
mfa_serial) ask for a six-digit MFA code inside the sign-in dialog when connecting, and ask again when the role session expires (one hour by default). The assumed session credentials live in the broker's memory only — never in the Keychain, credential store, or journal. - EC2 and ECS metadata (
credential_source = Ec2InstanceMetadatavia IMDSv2, andcredential_source = EcsContainer) work where this computer can reach the metadata service, with a one-second timeout each. When neither answers, Octant refuses with "This profile reads credentials from EC2/ECS metadata, which this computer can't reach."
- Role profiles work with
- Access keys: enter an access key ID and secret access key and choose Connect keys. A warning says such keys work until someone revokes them, and that a profile with single sign-on is better. The broker keeps the key pair; Octant's settings and records name only a reference to it.
Only a window on this computer can connect either, after you accept the sign-in terms once. A refusal names its cause: no such profile, no current single sign-on session, a credential_process that printed no credentials, an MFA code that was missing or refused, or unreachable EC2/ECS metadata.
When a provider runtime such as Claude Code uses Amazon Bedrock with its own AWS configuration, Octant does not resolve, copy, or replace its credentials: outside Strict, the launch carries your AWS environment variables and profile files so the runtime reads them as in its own CLI.
Amazon Bedrock with an API key
A Bedrock API key works with an OpenAI-compatible endpoint. Settings shows the provider-specific setup, including the Amazon Bedrock Mantle regional endpoint and the API-key credential.
To use Bedrock through the Codex CLI, see Use Codex with Amazon Bedrock.