Convex-agent wires up an AI agent or RAG backend on top of @convex-dev/agent, so you get durable threads, message history, tool calls, and vector search without building that plumbing yourself. Reach for it when you want an in-app assistant that remembers conversations and can pull from your own documents. The part I like most is that model calls go through the Convex AI Gateway by default, which means Convex holds the provider credentials and you never have to obtain, store, or rotate an LLM key. The honest caveat is that the gateway doesn't serve embeddings yet, so RAG setups still need an embedding provider key stored in Convex env. It also requires a Convex Cloud deployment on a paid plan, so free-tier or self-hosted projects will need the fallback path.

skills.sh installs
41.1K
GitHub stars
69
last updated
Oct 26, 2026

Install

$ npx -y skills add convex/agent-skills --skill convex-agent --agent claude-code

Installs into .claude/skills of the current project.

Files

Add an AI agent / RAG backend

Install @convex-dev/agent for durable threads, message history, tool-calls, and vector search/RAG — the backend for an in-app AI agent. Call models through the Convex AI Gateway by default: Convex holds the provider credentials, so there is no LLM key to obtain, store, or rotate.

Workflow

  1. Install @convex-dev/agent + @convex-dev/ai-sdk-provider; add the agent component to convex.config.ts.
  2. Define the agent (tools, instructions) with languageModel: convexGateway("provider/model") — no API key needed (needs convex 1.45+ on a Convex Cloud deployment, paid plan).
  3. Create threads + stream messages; persist history in Convex.
  4. For RAG: embed docs into a vector index and retrieve in the tool. The gateway does not serve embeddings yet, so store the embedding provider's key via the env micro power.
  5. Only if the gateway is unavailable (free plan, self-hosted, local backend): call the provider SDK with a key stored via the env micro power.

Rules

Sponsors

Details

Repository
github.com/convex/agent-skills
Categories
Backend & APIs, AI & Agent Building, Databases
First seen
Oct 26, 2026

More from convex/agent-skills

All 30
1pexoai avatarpexo-agentpexoai/pexo-skillsAI video generation skill with auto model selection across Seedance 2, Kling 3.0, HappyHorse, and 10+ models. Produces finished multi-shot videos (5–120s) from 40.6Kskills.sh installs
2expo avatarexpo-deploymentexpo/skillsDeploy Expo apps to production with EAS — build and submit to the iOS App Store, Google Play Store, and TestFlight, configure eas.json build and submit profiles40.2Kskills.sh installs
3samber avatargolang-swaggersamber/cc-skills-golangGolang OpenAPI/Swagger documentation with swaggo/swag — annotation comments (@Summary, @Param, @Success, @Router, @Security), swag init code generation, framewo38.6Kskills.sh installs
4mcp-use avatarmcp-apps-buildermcp-use/mcp-useBuild, modify, debug, migrate, or review TypeScript MCP servers and interactive MCP Apps using mcp-use v2. Use for tools, resources, prompts, Views, React host 33.1Kskills.sh installs
5minimax-ai avatarmmx-climinimax-ai/cliUse mmx to generate text, images, video, speech, and music via the MiniMax AI platform. Use when the user wants to create media content, chat with MiniMax model32.5Kskills.sh installs
6expo avatarexpo-data-fetchingexpo/skillsFramework (OSS). Use when implementing or debugging ANY network request, API call, or data fetching. Covers fetch API, React Query, SWR, error handling, caching31.8Kskills.sh installs