Turn on the agent

Your own Anthropic or OpenAI API key, so the agent can answer questions and draft plans.

On this page

Before you begin

  • An EntiPath owner account.
  • An Anthropic or OpenAI account where you can create API keys. They bill the usage.

It takes about 5 minutes.

The agent answers questions about who has access and why, and drafts change plans and Terraform pull requests for a person to check and send. It runs on your workspace’s own Anthropic or OpenAI API key.

Note. Usage is billed to your account with the provider you choose, not by EntiPath. EntiPath shows this month’s usage on the same page.
1

Create an API key

At Anthropic or OpenAI

Create a key at the provider you want the agent to use:

Anthropic
console.anthropic.com, under API keys
sk-ant-
OpenAI
platform.openai.com, under API keys
sk-
Note. A key for its own project or workspace at the provider makes the agent’s usage easy to see and limit there.
2

Add it to EntiPath

In EntiPath

  1. Go to Settings › Agent.
  2. Under Model provider, choose Anthropic or OpenAI.
  3. Paste the API key.
  4. For OpenAI, click Check key.The Model list shows the models OpenAI offers that key.
  5. Choose a Model.
  6. Click Save changes.EntiPath checks the key with the provider and stores it encrypted. It’s never shown again.
Settings › Agent in EntiPath, with the model provider choice, the API key field and the Model list
Important. Switching provider removes the old provider’s key when you save, so paste the new provider’s key at the same time, or the agent turns off.
  • Only an owner can add or change the key.
  • Remove key turns the agent off.
  • For the agent to read and propose Terraform changes, connect the repository with the Terraform pull requests guide. The same card is on this page.

Using the agent

In EntiPath

Owners, admins and identity engineers can use it, from Agent in the sidebar. It works from what EntiPath last synced, never changes Okta itself, and shows each step it takes. A plan it drafts goes through approval like any other.

Troubleshooting

Find the message EntiPath showed. Each one says why it happens and how to fix it.

“Anthropic did not accept this API key” or “OpenAI did not accept this API key”

The provider refused the key.

To fix it
  1. Check you copied all of it.
  2. Check it hasn’t been revoked.
  3. Check it belongs to the provider you chose.
“Could not check the key with …”

EntiPath couldn’t check the key, or the provider refused the request for another reason, such as an account out of credit or over its rate limit. The message gives the provider’s reason.

To fix it
  1. Check the account with the provider.
  2. Try again.
“Add your workspace’s Anthropic API key in Settings → Agent …” or “The agent needs an OpenAI API key …”

The agent needs a key for the chosen provider.

To fix it
  1. An owner adds one in Settings › Agent.
“… did not accept the agent’s API key. A workspace owner can update it …”

The key worked before and the provider now refuses it, usually because it was revoked or deleted.

To fix it
  1. An owner adds a new key in Settings › Agent.
“OpenAI does not offer … to this key”

That key can’t use the chosen model.

To fix it
  1. Choose one from the list the provider gives for this key.
“Your role cannot use the agent”

Owners, admins and identity engineers can use the agent.

To fix it
  1. Ask an owner to change your role.

Still stuck? Email support@entipath.com with your workspace address and the message EntiPath showed.