> For the complete documentation index, see [llms.txt](https://docs.wem.io/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wem.io/platform/wemmodeler/agentic-ai/agent-configuration.md).

# Agent Configuration

For AI agents to function in a specific environment, every provider used in your project must be configured with valid credentials.&#x20;

{% hint style="danger" %} <mark style="background-color:$warning;">This configuration is managed in the</mark> <mark style="background-color:$warning;"></mark><mark style="background-color:$warning;">**DevOps portal**</mark> <mark style="background-color:$warning;"></mark><mark style="background-color:$warning;">on a per-portal, per-environment basis; meaning you will need to set it up separately for each environment (e.g. staging and live).</mark>
{% endhint %}

{% hint style="danger" %}
On a **Shared Runtime** currently only WEM Support can setup the AI Agent Configuration.

You need to provide the information in a support ticket and WEM Support will setup the configuration.

Check the required settings per Provider below.

If you feel hesitant about sharing all details in a single Support Ticket, you can send the API key via email to <support@wem.io> and include either ticket id or project id in the message so it can be linked to the correct application.

You should also mention specifically Staging and/or Live if different settings need to be used in either case, or if one setting can be used for both runtimes.&#x20;

WEM Support will check which Runtime your project is currently using from the settings in Modeler and apply the settings there.
{% endhint %}

<figure><img src="https://1449034948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L_NpOsk0sjotPXNy29Q%2Fuploads%2FU4tYJvpMVzIhTpKGR5Ry%2FScreenshot%202026-04-28%20170028.png?alt=media&amp;token=ce57b800-7323-4fc7-97e4-9f19674e7e1f" alt=""><figcaption></figcaption></figure>

#### **Opening the configuration**

In the DevOps portal, navigate to your portal and open the **AI agent configuration** panel. Any providers already configured are listed here. Click **+ Add configuration** to add a new provider.

#### **Adding a provider**

Clicking **+ Add configuration** opens a **Choose a provider** dialog with the currently available model providers. Each provider has its own set of required credentials, and each provider will have its own authentication options. There can be multiple providers configured at the same time, allowing you to use different agents from different providers in the same project.&#x20;

**Notes**

* The same provider configuration can be shared across multiple agents within the same portal.
* Configuration must be set up per environment, a configuration added to staging is not automatically available on live.
* This configuration is only accessible to users with DevOps portal access. If you need a provider configured, contact your portal administrator.&#x20;
* The model selection in the modeler chooses the credentials used, ensure developers are aware of the cost implications.
* Below per provider the necessary information to setup in DevOps (or ask WEM Support to setup in DevOps in case your project runs in a Shared Runtime).

{% tabs %}
{% tab title="Anthropic" %}

* API Key only
  {% endtab %}

{% tab title="Azure OpenAI" %}

* Resource Name (ending in .openai.azure.com)

and

* Authentication Mode API Key:
  * API Key
* Authentication Mode Client Secret:
  * Tenant ID
  * Client ID
  * Client Secret
    {% endtab %}

{% tab title="Cerebras" %}

* API Key only
  {% endtab %}

{% tab title="Google" %}

* Gemini Developer API
  * API Key
* Vertex AI
  * Project
  * Location
  * Service Account Key
    {% endtab %}

{% tab title="OpenAI" %}

* Organization ID
* Project ID
* API Key
  {% endtab %}
  {% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.wem.io/platform/wemmodeler/agentic-ai/agent-configuration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
