What problem does it solve? Setting up a governed AI agent in AdonisJS involves many fail-closed defaults — a missing actorResolver turns every route into a 401, an omitted quota silently disables budgeting, and unpriced models make spend rollups read as $0.00. This Skill walks through the full config/agent.ts setup so the agent loop, persistence, budgeting, and /agent/* routes work correctly on the first deploy. ## Core Features & Use Cases - Guided installation and configuration: Runs node ace configure, wires defineConfig with aiSdkModel, Lucid or memory stores, and the AuthActorResolver identity seam. - Governance patterns: Enforces daily token budgets with quotas.ledger, prices turns via pricingStore plus seedModelPrices or the models.dev catalog, and enables multi-replica SSE with tokenSinks.redis. - Common mistake fixes: Diagnoses 401s from the default UnconfiguredActorResolver, fail-open quotas, double-counted usage in custom QuotaStore bump methods, and attachment content-type replacement pitfalls. - Use Case: You installed @adonis-agora/agent and every /agent route returns 401 — the Skill identifies the missing actorResolver and provides the corrected config. ## Quick Start Set up @adonis-agora/agent in my AdonisJS app with a Lucid store, a daily token quota, and seeded model prices for gpt-4o-mini.