Getting Started with ACE
Universal memory infrastructure for AI systems - Set up in 5 minutes
ACE (Adaptive Context Engine) is a PostgreSQL-powered memory infrastructure that gives AI systems the ability to remember and organize information across conversations.
AI-Assisted Plan Builder
Generate complete project plans in seconds. AI creates issues, decisions, architecture, and relationships automatically.
Knowledge Graph
Interactive graph with 10 relationship types. Trace issues to decisions, explore dependencies, and visualize connections.
9 Entity Types:
PostgreSQL Database
You'll need a PostgreSQL connection string. Options include:
- Neon - Free tier, no credit card required (recommended)
- Supabase - Free tier available
- Local PostgreSQL - Install on your machine
- AWS RDS / Google Cloud SQL - For production
ACE Account (Free)
Sign up at ace3-ai.com/signup - no credit card required for Starter tier
Get a PostgreSQL Database
ACE requires PostgreSQL for memory storage. We recommend Neon for the easiest setup.
Recommended: Neon (Free Tier)
- Visit neon.tech (no credit card required)
- Click "Sign Up" and create an account
- Click "Create a Project" and give it a name (e.g., "ace-memory")
- Copy your connection string from the dashboard
postgresql://user:password@ep-xxx.region.aws.neon.tech/dbname?sslmode=require
Neon Connection String Format:
postgresql://user:password@ep-xxx.region.aws.neon.tech/dbname?sslmode=requireInstall ACE
Install ACE globally via npm. This downloads the compiled binary for your platform automatically.
What this does:
- Installs the
acecommand globally - Auto-downloads the compiled binary for your OS (macOS, Linux, Windows)
- Sets up the CLI for immediate use
Verify the installation:
Login and Initialize
Login to your ACE account and configure your database connection.
Step 3a: Login to ACE
This opens your browser to sign in. Your auth token is saved securely.
Step 3b: Initialize your database
The init wizard will ask:
- Cloud database - Paste your connection string from Neon, Supabase, etc.
- Local database - Enter host, port, database name, username, password
- Skip - Configure later via the dashboard Settings page
Start ACE Server
Start the ACE server to enable memory operations.
✅ ACE is now running!
- • Server URL:
http://localhost:7777 - • Schema auto-initializes on first connection
- • Press Ctrl+C to stop
Verify the server is running:
Configure AI Provider Keys (Optional)
Enable semantic search and AI Builder by adding your API keys.
Go to Dashboard → Settings and add your API keys:
OpenAI
Required for semantic search, also available for AI Builder
Anthropic
For AI Builder (Claude models)
For AI Builder (Gemini models)
Keys are encrypted at rest. Learn more about BYOK →
Test ACE by creating your first issue. With the server running, execute:
You should receive a JSON response with your created issue:
List all issues in your namespace:
Production Authentication
For production deployments, you'll need to include an API key or JWT token in your requests:
-H "Authorization: Bearer YOUR_API_KEY"Generate an API key: ace api-key create --name "My Key"
ace: command not found
The ACE CLI isn't in your PATH. Try:
- Restart your terminal after installation
- Run
npm list -g @ace3-memory/aceto verify installation - Try reinstalling:
npm install -g @ace3-memory/ace
Connection refused (localhost:7777)
ACE server isn't running. Start it with:
Database connection failed
Check your database connection string. Common issues:
- Verify the connection string format is correct
- Ensure the database server is running and accessible
- Check firewall rules allow connections
- Re-run
ace initto reconfigure
Authentication failed
Your login session may have expired. Re-authenticate:
Dashboard shows "Connection Error" but ACE is running
This is usually a CORS issue. The ACE dashboard needs permission to connect to your server.
- Local ACE: Update to latest version which includes ace3-ai.com in default CORS
- Self-hosted ACE: Set the
ACE_ALLOWED_ORIGINSenvironment variable:
For cloud deployments (AWS, GCP, etc.), add these origins to your environment configuration.
- Set up Passport early - Passport provides device-bound auth that never expires. Run
ace passport createthenace passport linkto avoid token refresh issues with AI tools - Enable Observer - Observer is AI monitoring AI - it catches errors, conflicts, and missed context before they become problems. Use via MCP or REST API
- Namespaces isolate data - Use different namespaces for different projects (e.g.,
my-app,client-project) - Keep ACE running - Run
ace startin a dedicated terminal tab, or useace stopto stop the server when done - Connect your AI tools - ACE works with Claude Code, Cursor, VS Code, and more via MCP. See our MCP setup guides
- View your data - Access the ACE Dashboard to see your memories, issues, and knowledge graph
- Use AI Builder - Generate complete project plans instantly with the AI Builder feature
Set Up Passport
Device authentication that never expires - recommended first step
Enable Observer
AI monitoring AI - catch errors before they happen
Connect AI Tools
Set up MCP with Claude Code, Cursor, VS Code, and more
API Reference
Explore all available endpoints and features
Open Dashboard
View and manage your memories visually
Try AI Builder
Generate project plans with AI assistance
Need help? Check the documentation or contact support