Axonius AI on-prem (Early Access): Connect Your Own LLM Provider

What's new

On a Customer-hosted Axonius instance, the Axonius AI agent can call Claude through your own LLM provider account.
Three options are available:

LLM ProviderWhat you give AxoniusWho bills the usage
AWS Bedrock (instance profile)Nothing: the AI agent uses the IAM role of the Axonius EC2 instanceAWS, on your account
AWS Bedrock (access keys)AWS region, IAM user access keys, and an optional IAM role to assume. Use it only when the Axonius instance does not run on AWSAWS, on your account
Anthropic (API key), direct or through your gatewayAnthropic API key, and an optional gateway URLAnthropic or your gateway

The Axonius AI agent uses your provider only after a connection test passes using the provided settings and credentials. Until then, the AI agent is disabled. Axonius never moves a conversation to the Axonius-managed LLM account.

Where this setting appears

The LLM Provider setting is for customer-hosted Axonius instances in the Early Access program. Axonius Support turns it on for each instance.

On Axonius-hosted (SaaS) deployments, Axonius runs the AI agent for you, and the LLM Provider setting does not appear.

Models

The AI agent uses Claude Haiku, Sonnet, and Opus. Each task goes to the model that best fits it.
The exact model versions change from release to release, as Axonius moves to newer Claude models.
Give your account access to all Claude Haiku, Sonnet, and Opus models. Then, a new Axonius release requires no changes on your side.

Part 1: Prepare the Credentials

Option A: Amazon Bedrock

Amazon Bedrock has two options. The two options never mix:

  • AWS Bedrock (instance profile): the AI agent signs every call with the IAM role of the Axonius EC2 instance, in the instance's AWS region. You enter nothing, and Axonius stores no key. Use this option when the Axonius instance runs on AWS.
  • AWS Bedrock (access keys): the AI agent signs every call with the keys that you enter. It never uses the IAM role of the instance, even when the instance has one. Use this option only when the Axonius instance does not run on AWS.

For both methods

  1. In the Amazon Bedrock console of the region, make sure that the account can use the Anthropic Claude Haiku, Sonnet, and Opus models.
    Anthropic models need a one-time use case form for each AWS account (or once at the AWS Organization management account, which covers its member accounts). Access starts as soon as you submit the form.
  2. Attach this policy to the identity that calls Bedrock (see the method steps). Replace <your-account-id> with your Bedrock account ID.
    The policy allows all Claude Haiku, Sonnet, and Opus models, so a newer model in a later Axonius release needs no policy change.
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AxoniusAiAgentsInvokeClaude",
      "Effect": "Allow",
      "Action": ["bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream"],
      "Resource": [
        "arn:aws:bedrock:*::foundation-model/anthropic.claude-haiku-*",
        "arn:aws:bedrock:*::foundation-model/anthropic.claude-sonnet-*",
        "arn:aws:bedrock:*::foundation-model/anthropic.claude-opus-*",
        "arn:aws:bedrock:*:<your-account-id>:inference-profile/*.anthropic.claude-haiku-*",
        "arn:aws:bedrock:*:<your-account-id>:inference-profile/*.anthropic.claude-sonnet-*",
        "arn:aws:bedrock:*:<your-account-id>:inference-profile/*.anthropic.claude-opus-*"
      ]
    }
  ]
}

The AI agent requires no additional Bedrock permissions. The connection test also calls sts:GetCallerIdentity, which requires no permissions.

The AI agent calls Claude through Bedrock cross-region inference profiles (for example us., eu., au., jp. or global.). A profile can send a request to another region in the same geography. A global. profile can send it to any commercial region.

If a service control policy (SCP) in your AWS Organization blocks regions, make sure that it does not block the regions of your profile.

For a global. profile, AWS evaluates the request with the aws:RequestedRegion condition key set to unspecified. A region allowlist in an SCP can deny these requests even when every destination region is allowed, so make sure that the SCP also allows unspecified. For details, see Global cross-Region inference.

Option A1: AWS Bedrock (instance profile)

Use this method only when the Axonius instance runs on Amazon EC2.

Attach the policy to the IAM role of the Axonius instance profile. If the instance has no instance profile, create one with this role and attach it to the instance.

Option A2: AWS Bedrock (access keys)

  1. Create an IAM user for Axonius. Create a long-term access key for it (the key ID starts with AKIA).
    Temporary credentials (key ID ASIA with a session token) are not supported.
  2. Attach the policy to the IAM user.
  3. Optional: to call Bedrock through a role (for example, in another AWS account), attach the policy to that role instead. Give the IAM user sts:AssumeRole on the role, and allow the user in the role trust policy. To use an External ID, add an sts:ExternalId condition with the same value that you enter in Axonius.

Option B: Anthropic (API key), direct

Options B and C both use the Anthropic (API key) option. Option C also uses the gateway fields under Advanced options.

  1. In the Claude Console, create a workspace for Axonius. This keeps the Axonius usage, limits and key apart from your other work.
  2. In that workspace, create an API key.
    An Anthropic API key has no permission scopes. It can call every model that the workspace can use.
  3. Optional: set a monthly spend limit on the workspace.

Option C: Anthropic (API key), through your own gateway

Use this option when your network sends LLM traffic through a proxy or AI gateway.

  • The gateway must serve the Anthropic Messages API (/v1/messages) and the Claude Haiku, Sonnet, and Opus model names of the Anthropic API.
  • The gateway address must use https://.
  • The gateway can accept the key in the x-api-key header or in Authorization: Bearer.
  • If a private certificate authority signs the gateway certificate, add the CA certificates (PEM) in Axonius. Axonius always verifies the certificate.
  • Your gateway sets its own key permissions.

Part 2: Configure Axonius

To configure Axonius, you need the Configure AI system settings permission.

Both AWS Bedrock options diplay a link to this setup guide.

  1. Open Settings > AI Settings > General Settings.
  2. Find LLM Provider. Select AWS Bedrock (instance profile), AWS Bedrock (access keys) or Anthropic (API key) (for Options B and C).
  3. Enter the values:
    • AWS Bedrock (instance profile): there are no fields.

    • AWS Bedrock (access keys): enter the AWS region, Access key ID and Secret access key. Optional: Role ARN and External ID.

    • Anthropic (API key): enter the Anthropic API key. For a gateway, open Advanced options and set Gateway URL, Send the key as (x-api-key header or Authorization: Bearer) and CA certificates as necessary.

  4. Click Test connection. You do not have to save the configuration before testing the connection. The test uses the values on the page.
  5. Read the result:
    • The connection works. Save to run the AI agent on these settings. Select Save. The AI agent starts using the provider immediately, with no second test.

      If you change a value after the test passes, the test result no longer applies and. you must text the connection again. Click Test connection again before you click Save. If you save without a new test, the AI agent stays disabled until a test passes on the saved settings.

    • The connection test failed on these settings. The page shows the cause and the provider's own error text, for example, no instance role, a refused API key, or each model that the account cannot use. Fix the cause and test again.

  6. After Save, the page shows Verified: the AI agent runs on this provider.

Each change to the provider settings removes the verification. The AI agent stops until a new test passes.
Axonius stores the secret access key and the API key encrypted. The page never shows them again. The instance profile method stores no credential.
Axonius records each connection test in the audit log.

Troubleshooting

Test messageCauseAction
The access key ID or secret access key is invalid.Wrong or deleted keyCreate a new access key and save it.
The access key has expired.Temporary (ASIA) credentialsUse a long-term IAM user key (AKIA).
These access keys can't assume the role.Trust policy or External IDCheck the trust policy, the sts:AssumeRole permission, and the External ID.
The Axonius instance has no AWS credentials.Instance profile: no role attachedAttach an instance profile with the policy.
The Axonius instance could not read its AWS region from the instance metadata.Instance profile: metadata blockedAllow the instance metadata (IMDSv2) for the instance.
The AWS region is not enabled for this AWS account.Opt-in regionEnable the region, or select a different region.
The AWS account cannot use every model the AI agent calls.Model access or IAMGive the account access to all Claude Haiku, Sonnet and Opus models. Check the policy and the SCPs.
The API key is not allowed to call the API.Workspace or keyCheck the workspace and the key in the Claude Console.
The gateway's certificate is not trusted.Private CAAdd the CA certificates under Advanced options.
The Axonius instance couldn't reach AWS / the API or the gateway.Firewall or proxyAllow outbound HTTPS from the instance to the provider address.

Did this page help you?