> ## Documentation Index
> Fetch the complete documentation index at: https://docs.barndoor.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding Your Agents

> Step-by-step guide for adding an agent in Barndoor.

Adding your agents to Barndoor

**Prerequisites**

* Admin privileges in your Barndoor organization.
* Application details for your agent, including application type (guidance below) and OAuth callback URL(s)

## Step-by-step guide

1. Go to **AI Agents**: [https://app.barndoor.ai/agents](https://app.barndoor.ai/agents).
2. Click **Add Agent** button (top-right).<br />This opens the **Add AI agent** registration form.

<img src="https://mintcdn.com/barndoor/go_AIQEYFLJQKYJM/images/add-agent-modal2.png?fit=max&auto=format&n=go_AIQEYFLJQKYJM&q=85&s=7408f961bf7b1d5dc1eba6178b9d08a9" alt="Add AI agent modal with fields for name, description, application type, and allowed logout URLs" style={{ width:"67%" }} width="1176" height="1718" data-path="images/add-agent-modal2.png" />

> Tip: If you don't see the button, ensure your user has admin access.

## Fill out the registration form

1. **Name**<br />Clear, human-readable name (e.g., `Snowflake Assistant`, `Sales Ops Agent`).
2. **Description**<br />Short sentence on what the agent does and which services it connects to.
3. **Agent Owner**<br />Name of person or team that is responsible for the agent (optional)
4. **Owner Contact Information**<br />Email address, slack channel, or other contact information for the Agent Owner (optional)
5. **Callback URLs**\* Enter one or more URLs where Barndoor should send callbacks after users sign in through your Identity Provider or authorize Barndoor to access an MCP server.
6. **Allowed Logout URLs**<br />One or more URLs where users can be safely redirected after logging out (press **Enter** after each URL).

When you're done, click **Register agent**.  Upon successful agent creation, you'll be presented your agents credentials.  These credentials are required for authenticating your application to make authorized requests to Barndoor operations.

## Your Agent Credentials

<img src="https://mintcdn.com/barndoor/XeNGvf7i3-lwyztZ/images/agent-credentials.png?fit=max&auto=format&n=XeNGvf7i3-lwyztZ&q=85&s=5870c465469b11cf08d603c166038488" alt="Agent Credentials print out" width="534" height="413" data-path="images/agent-credentials.png" />

## What happens next?

* Your new agent appears in the **All Agents** list.
* From there you can:
  * Configure **access policies** for the agent by adding the agent to the scope of MCP servers such as Snowflake, Salesforce, and Notion in Access Control Center.
  * For Machine to Machine or Autonomous Agents, you can directly connect them to MCPs with service account credentials or LLM models with their virtual keys. See [AgentProfiles](https://docs.barndoor.ai/how-tos/agent-profile/overview)
  * Manage **auth settings** and rotate credentials if your application type requires it.
  * Monitor **Active users** and **Monitored actions** over time.

**Next step:** Create an [access control policy](https://docs.barndoor.ai/how-tos/manage-policies) for the agent to fine-tune which tools it can use and define any exception conditions that should limit its behavior.
