Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Agent mode is for cloud coding agents (Jules, Devin, Cursor Cloud) to avoid conflicts with your dev deployment. Local agents don't need this.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -14% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -18% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -9% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -19% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -18% | 0% |
Agent Mode allows cloud-based coding agents to work with Convex without conflicting with your personal development environment.
Purpose: Prevents cloud coding agents from conflicting with your development work.
The Problem: When cloud agents (Jules, Devin, Cursor Cloud Agents) run npx convex dev, they would normally use your default dev deployment. This conflicts with your own changes!
The Solution: Agent mode creates an isolated anonymous development environment for the agent.
Key: If the agent runs locally and you're logged in, it doesn't need agent mode!
Set the environment variable:
bash# .env.local CONVEX_AGENT_MODE=anonymous
Or run directly:
bashCONVEX_AGENT_MODE=anonymous npx convex dev
When a cloud agent runs with CONVEX_AGENT_MODE=anonymous:
npx convex devbash# .env.local (for cloud agent) CONVEX_AGENT_MODE=anonymous # Agent runs this npx convex dev # Creates isolated environment, doesn't touch your dev deployment
For local development (you at your computer):
bash# Just log in normally npx convex dev # This works fine! Uses your dev deployment. # Local agents (Cursor, Claude Code) use this.
You don't need agent mode because:
Perfect for automated environments:
yaml# .github/workflows/test.yml name: Test on: [push] jobs: test: runs-on: ubuntu-latest env: CONVEX_AGENT_MODE: anonymous steps: - uses: actions/checkout@v3 - run: npm install - run: npx convex dev & - run: npm test
⚠️ Agent mode is currently in beta.
Future improvements may include:
No! Just log in normally:
bashnpx convex dev # This is fine for local work
No! Agent mode is for coding agents, not app users.
For anonymous app users, use proper auth with guest/anonymous support.
No! Agent mode is about deployment isolation for agents, not skipping auth in your app.
You still need auth in your functions!
CONVEX_AGENT_MODE=anonymous in agent's environmentOther measured skills in the registry, with their headline benchmark lift.