AgentVault

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

variabledefaultnotes
PORT4200API port
DATABASE_URLunsetPostgres; enables pgvector when the extension exists
AGENTVAULT_DB_PATH./data/agentvault.dbSQLite file when there's no DATABASE_URL
AGENTVAULT_EMBEDDINGSlocallocal · openai · hash · none
AGENTVAULT_CORS_ORIGINSlocalhost:3000 in devComma-separated browser origins for the console
REDIS_URLunsetShared rate limiter across instances
SUPABASE_URL / SUPABASE_ANON_KEYunsetUse 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.