## AI Agent An AI Agent in [Frontegg.ai](/ciam/guides/frontegg-ai/overview) is a server-side identity-aware agent definition that acts as the central integration point between your AI logic and the Frontegg platform. You configure and manage agents directly in the **Frontegg portal** under [ENVIRONMENT] → AI Agents → Agents. Each agent includes the following key configuration fields: | **Field** | **Description** | | --- | --- | | **Name** | A human-readable label to identify the agent in the dashboard. | | **Description** | A short internal note describing the agent’s purpose or functionality. | | **Agent ID** | A unique identifier used to reference the agent in your code and SDK setup. | | **Model Provider** | Specifies which LLM provider the agent will work with (e.g., OpenAI). | | **Orchestration Platform** | Indicates the framework used for agent execution, such as LangChain. | | **Agent URL** | The redirect URL used after authentication. Also used internally across the environment as a dynamic redirect target for various flows. | | **Login URL** | Defines the location of your login interface:- For hosted login, this should end with `/oauth`- For embedded login, it typically matches your app’s base URL. This URL is used for login redirection across your Frontegg environment. | | **API Key** | A secret used to authenticate requests from the Frontegg platform to your agent or services. | The agent itself does not include any logic or integrations directly — rather, it is a metadata object that your runtime code connects to using the Frontegg SDK. You reference the Agent ID, Client ID, Secret, and Base URL in your `.env` file or config, which the SDK uses to authenticate the agent, fetch available [tools](/ciam/guides/frontegg-ai/tools) and resolve user context during runtime. ### AI Agent creation and management To manage AI agents in your environment, navigate to [ENVIRONMENT] → AI Agents → Agents. ![AI](/assets/ai-agent-1.5afe727cb95ec1a69bc2d367abcd75aa70e2073eb0e29916148a63d5a003e81e.930a87ff.png) #### Creating an AI Agent To create an agent: 1. Click **Create Agent** 2. Fill in the following fields: ![AI](/assets/ai-agent-2.1c18c773969fc5521d333ba625112fbc54a8ae958d19f0320afcbc07fa856785.930a87ff.png) - **Name** – A human-readable name for the agent. - **Description** – A short summary of the agent’s purpose. - **Model Provider** – Select from: `Anthropic`, `Google`, `Meta`, `Mistral`, `OpenAI`, or `Other`. - **Orchestration Platform** – Select from: `Autogen`, `CrewAI`, `LangChain`, or `Other`. - **Agent URL** – The URL your users are redirected to after authentication. 1. Click **Save** to create the agent. #### Deleting an AI Agent To delete an agent: 1. Select the AI agent from the list. ![AI](/assets/ai-agent-3.085f5d9b7829ee0b21a119f7ab3e1741a80ba0deaad0b441c80d0d34ed98b68d.930a87ff.png) 1. Scroll to the bottom of the page. ![AI](/assets/ai-agent-4.4d76a008f1aed64f37517d1624df4f081a6904e35f234b2186bc83c5a2c3f5ec.930a87ff.png) 1. Click the **Delete** button and confirm the action. br Deleting an AI agent Deleting an agent is permanent and cannot be undone.