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.
Create an API key
At Anthropic or OpenAI
Create a key at the provider you want the agent to use:
| Provider | Where | The key starts with |
|---|---|---|
| Anthropic | console.anthropic.com, under API keys | sk-ant- |
| OpenAI | platform.openai.com, under API keys | sk- |
sk-ant-sk-Add it to EntiPath
In EntiPath
- Go to Settings › Agent.
- Under Model provider, choose Anthropic or OpenAI.
- Paste the API key.
- For OpenAI, click Check key.The Model list shows the models OpenAI offers that key.
- Choose a Model.
- Click Save changes.EntiPath checks the key with the provider and stores it encrypted. It’s never shown again.

- 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.
- Check you copied all of it.
- Check it hasn’t been revoked.
- 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.
- Check the account with the provider.
- 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.
- 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.
- An owner adds a new key in Settings › Agent.
“OpenAI does not offer … to this key”
That key can’t use the chosen model.
- 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.
- Ask an owner to change your role.
Still stuck? Email support@entipath.com with your workspace address and the message EntiPath showed.