Self-hosting
Run the same open-source server on your own machine or server with Docker.
The hosted service runs the open-source server, unchanged. You can run the same thing yourself: your pages then live only in your own database.
With Docker
git clone https://github.com/ethanplusai/anywhere.git
cd anywhere
cp .env.example .envIn .env, set BASE_URL to the address people will use and choose a POSTGRES_PASSWORD. Then:
docker compose up -dOpen your BASE_URL and create your account. Agents connect to BASE_URL/mcp.
Who can sign up
ANYWHERE_SIGNUPS decides who can create an account on your server:
open, the default: anyone who can reach the server.approved: only emails on the server’s approved list.closed: nobody new. Set this after you have made your own account if you use the server alone.
Change it in .env and restart. Sign-in is never affected.
On a public address
Put a TLS proxy such as Caddy or nginx in front. Claude’s connectors need https on port 443. Pick the address once: agents remember the exact URL, and changing it means connecting them again.
Without Docker
With Node 22 and pnpm:
pnpm install
pnpm --filter ./packages/server build
BASE_URL=http://localhost:3000 node packages/server/dist/main.jsWithout DATABASE_URL the server keeps its data in an embedded database in ./data, which suits one person on one machine. Point DATABASE_URL at Postgres 14 or newer for anything more. Migrations run at startup.
Settings
Every limit on the limits page can be changed with an environment variable; .env.example lists them all with their defaults. The server checks its settings at startup and refuses to run with an unsafe one, such as a plain http address in production.