docs / self-host
Self-host
Run the API on your own machine or cloud. SQLite for a laptop, Postgres with pgvector for production.
Run it
terminal
git clone https://github.com/ranjan2829/AgentVault-api && cd AgentVault-api pnpm install pnpm --filter @agentvault/api dev # http://127.0.0.1:4200 # a fresh database seeds a demo account and prints its API key curl http://127.0.0.1:4200/v1/bootstrap
Embeddings run in process (Xenova/bge-base-en-v1.5, 768 dims): no API key, the weights download once. Email + password sign-in is on by default when Supabase isn’t configured.
Postgres and Redis
terminal
docker compose up -d pgvector redis export DATABASE_URL=postgres://agentvault:agentvault@127.0.0.1:5433/agentvault export REDIS_URL=redis://127.0.0.1:6390 pnpm --filter @agentvault/api dev
Environment
| variable | default | notes |
|---|---|---|
PORT | 4200 | API port |
DATABASE_URL | unset | Postgres; enables pgvector when the extension exists |
AGENTVAULT_DB_PATH | ./data/agentvault.db | SQLite file when there's no DATABASE_URL |
AGENTVAULT_EMBEDDINGS | local | local · openai · hash · none |
AGENTVAULT_CORS_ORIGINS | localhost:3000 in dev | Comma-separated browser origins for the console |
REDIS_URL | unset | Shared rate limiter across instances |
SUPABASE_URL / SUPABASE_ANON_KEY | unset | Use Supabase for console sign-in instead of local accounts |
Point the console at it
In the web app set NEXT_PUBLIC_AGENTVAULT_API_URL to your API’s URL, then sign up from the console. Without Supabase variables the console uses the API’s own email + password accounts.