Configure an Agent
What is an Agent?
An agent is a configurable AI endpoint (VirtualModel) sitting on top of one or more deployments. It provides:
- a stable slug used as the
modelfield in API requests - an Agent Mode (
All,Primary, orSubagent) controlling direct invocation and delegation - a routing strategy — Fixed, Rule-Based, or Workflow
- a system prompt prepended to every request
- optional Knowledge Bases, MCP Tools, Subagents, Semantic Cache, and OpenWebUI links
Every Mycelis Agent can also serve directly as the Brain (mycelis-agent) for autonomous digital employees in Mycelis Roleplay. Before creating an agent, deploy or connect at least one model: Create a Dedicated Deployment or Create a Commercial Deployment.
Create an Agent
Navigate to Agents (/dashboard/agents) in the left sidebar and click New Agent. Set a Name, optional Description, and initial Routing Strategy (Fixed, Rule-Based, or Workflow).
General Tab
Configure core identity and behavior:
- Name & Description — the description is also surfaced to parent agents when delegating to this agent as a subagent.
- Slug (API Model ID) — the unique identifier used as
modelin OpenAI-compatible clients (Cursor, OpenCode, Claude Code, Python/JS SDKs). - Agent Mode:
- All: Can be called directly via API/Chat and delegated to as a subagent.
- Primary: Direct endpoint only (cannot be attached as a subagent).
- Subagent: Intended exclusively for delegation by other agents.
- System Prompt — instruction prepended to every request sent through this agent.
Models & Routing Tab
Choose how requests map to deployments:
Strategy: Fixed
Every request forwards to a single statically selected deployment.
Strategy: Rule-Based
Evaluate ordered rules using conditions:
- Auto Intent: Coding, Debugging, Code Review, Architecture, Explanation, Documentation, Creative Writing, Data Analysis, Math, Translation, DevOps, Agentic, Long Context.
- Text / Query:
ContainsorRegex. - Request Info:
Has Tools,Tokens > N/Tokens < N,Client Type Is(Cursor, GitHub Copilot, Continue, OpenCode, Generic),MCP Tool Available,Knowledge Base ID.
Always include a Default Rule as a fallback.
Strategy: Workflow
Build multi-stage pipelines in the visual graph editor (starting from templates or a blank canvas):
| Node | Purpose |
|---|---|
| Start | Entry point of the pipeline |
| Raw Model | Forwards directly to a deployment |
| Agent | Forwards to another configured agent |
| If / Else | Conditional branching |
| Knowledge Base / All KBs | Attaches one or all workspace Knowledge Bases |
| MCP Tool / MCP Server / MCP Hub | Exposes individual tools, servers, or the entire Hub |
| Semantic Cache | Caches semantically similar queries inline in the workflow |
| Smart Router | Routes dynamically based on request properties |
Knowledge & Tools Tab
Available for Fixed and Rule-Based agents (in Workflow mode, configure them directly as graph nodes):
- MCP Tools: Attach the full MCP Hub, entire servers, or individual tools. See MCP Tools.
- Knowledge Bases: Attach one or more Knowledge Bases for automatic retrieval. See Set Up a RAG Pipeline.
Subagents Tab
Attach other configured agents (mode All or Subagent) as specialists that this agent can delegate tasks to:
- Pick eligible agents from the dropdown (
@slug). - Provide a custom "When to use" description per subagent so the primary model delegates accurately.
- Delegable subagents are also exposed in the Workflow editor.
Statistics, Access, Applications & Settings Tabs
- Statistics: Inspect spend, requests, token volume, latency, and Cache Hit Rate for this agent.
- Access: Grant or restrict access to specific workspace members or roles. (Note: if personal MCP connections are attached to the agent, a warning reminds you that shared users can invoke those tools through the agent.)
- Applications: Expose the agent to one or more OpenWebUI instances in your workspace. See Third-Party Apps.
- Settings: Enable Semantic Cache for Fixed and Rule-Based agents (requires the workspace cache to be enabled). See Privacy, Network & Semantic Cache.
Call via API
curl https://mycelis.ai/api/proxy/v1/chat/completions \
-H "Authorization: Bearer pat_..." \
-H "Content-Type: application/json" \
-d '{
"model": "your-agent-slug",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Next steps
- Set Up a RAG Pipeline — ground responses in your documents
- MCP Tools — connect external APIs and tools
- Manage API Keys — set monthly caps and per-key model access
