## 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).

This opens the **Add AI agent** registration form.

### Fill out the registration form
1. **Name**: Clear, human-readable name (e.g., `Snowflake Assistant`, `Sales Ops Agent`).
2. **Description**: Short sentence on what the agent does and which services it connects to.
3. **Agent Owner**: Name of person or team responsible for the agent (optional).
4. **Owner Contact Information**: Email address, slack channel, or other contact 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**: 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 with your agent's credentials. These credentials are required for authenticating your application to make authorized requests to Barndoor operations.

### Your Agent Credentials

### 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, 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.
