diff --git a/apps/dojo/src/agents.ts b/apps/dojo/src/agents.ts index 0d650c62b1..b78a01ae29 100644 --- a/apps/dojo/src/agents.ts +++ b/apps/dojo/src/agents.ts @@ -366,7 +366,13 @@ export const agentsIntegrations = { agno: async () => mapAgents( - (path) => new AgnoAgent({ url: `${envVars.agnoUrl}/${path}/agui` }), + (path) => + new AgnoAgent({ + url: `${envVars.agnoUrl}/${path}/agui`, + ...(envVars.agnoAuthToken && { + headers: { Authorization: `Bearer ${envVars.agnoAuthToken}` }, + }), + }), { agentic_chat: "agentic_chat", agentic_chat_reasoning: "agentic_chat_reasoning", diff --git a/apps/dojo/src/env.ts b/apps/dojo/src/env.ts index 47d1cca5a9..5988a0aad8 100644 --- a/apps/dojo/src/env.ts +++ b/apps/dojo/src/env.ts @@ -7,6 +7,7 @@ type envVars = { langgraphFastApiUrl: string; langgraphTypescriptUrl: string; agnoUrl: string; + agnoAuthToken: string; springAiUrl: string; llamaIndexUrl: string; crewAiUrl: string; @@ -56,6 +57,7 @@ export default function getEnvVars(): envVars { langgraphTypescriptUrl: process.env.LANGGRAPH_TYPESCRIPT_URL || "http://localhost:2024", agnoUrl: process.env.AGNO_URL || "http://localhost:9001", + agnoAuthToken: process.env.AGNO_AUTH_TOKEN || "", llamaIndexUrl: process.env.LLAMA_INDEX_URL || "http://localhost:9000", crewAiUrl: process.env.CREW_AI_URL || "http://localhost:9002", agentSpecUrl: process.env.AGENT_SPEC_URL || "http://localhost:9003", diff --git a/integrations/agno/typescript/README.md b/integrations/agno/typescript/README.md index c40c3f2d6f..347b24729d 100644 --- a/integrations/agno/typescript/README.md +++ b/integrations/agno/typescript/README.md @@ -29,6 +29,14 @@ const result = await agent.runAgent({ }); ``` +## Dojo + +To run the [dojo](https://github.com/ag-ui-protocol/ag-ui/tree/main/apps/dojo) against a secured AgentOS (e.g. `OS_SECURITY_KEY`, JWT middleware, or platform access tokens), set `AGNO_AUTH_TOKEN` — every agno request will then carry an `Authorization: Bearer ` header: + +```bash +AGNO_URL=http://localhost:9001 AGNO_AUTH_TOKEN= pnpm dev +``` + ## Features - **HTTP connectivity** – Direct connection to Agno agent servers