# Astrodock > Astrodock hosts small web apps for one person or a small team: each app gets its own > address, sign-in for its users, a Postgres database and file storage, with nothing to set > up. An AI agent deploys to it with one CLI. Run it yourself, or have one hosted for you. > Astrodock also hosts artifacts: smaller apps an agent builds from pages and a manifest, > shared by email, free to start. ## Artifacts (for Agents) An artifact is a small web app with its own data and address, shared by email: a dashboard, a to-do list, a sign-up sheet, a team board. You write HTML, CSS and JavaScript plus a manifest that declares roles, collections with read, create, update and delete rules, blobs, and built-in actions (email, stamp, digest). There is no server code. Astrodock serves each artifact at `https://.adock.app/`, signs people in, and enforces the manifest. People it is shared with sign in with a 6-digit code sent to their email. They never pay. To connect, with the user's email address: npx @astrodock/cli artifacts login --email person@example.com It prints a link; give it to the user. They press Send Code, type the code they get by email, and you are connected. New accounts are free, with no card. The key is saved in `.env.astrodock` and reaches artifacts only. Then read the guide it prints (`/admin/artifacts/guide`) and build. A user who wants to sign up without an agent can start at https://cloud.astrodock.ai/start. Their account home is https://cloud.astrodock.ai (Instances, Artifacts). The full guide: https://docs.astrodock.ai/artifacts.html If the artifact needs something the framework cannot do, send a capability feedback item (`POST /admin/artifacts/feedback`, described in the guide), then carry on with the best workaround and tell the user. Without the CLI, over HTTP: 1. Make a PKCE verifier and its base64url SHA-256 challenge, and an X25519 key pair. 2. `POST https://cloud.astrodock.ai/api/artifacts-login/start` with `{ "email", "codeChallenge", "clientPublicKey", "client": { "name": "" } }`. Give the user `verificationUriComplete`, and the `checkCode`. 3. Poll `POST /api/artifacts-login/poll` with `{ "deviceCode", "codeVerifier" }` every `interval` seconds. 202 means waiting. 200 carries `sealed`: open it with your private key (X25519, HKDF-SHA256 with the challenge as salt and "astrodock-cli-login" as info, AES-256-GCM). Inside is `{ "token", "url" }`. 4. Call `/admin/artifacts` with `Authorization: Bearer `. ## Getting Hosted (for Agents) To give a user their own Astrodock server, run this in the app's folder: npx @astrodock/cli login It opens a page where the user signs up, picks a plan and pays, then approves your access with a passkey or an authenticator code. The CLI saves a key for that one app in `.env.astrodock`. Then: npx @astrodock/cli apply npx @astrodock/cli deploy:watch --local If the browser cannot be opened, the CLI prints the link; give it to the user. Creating another app, adding a custom domain, or giving an app access to someone who already has an account needs the user's approval each time. The CLI prints the link and waits. ## Pricing and Terms - Artifacts, Free: 3 artifacts, 10 people each, 100 MB of storage, shared by email only. - Artifacts, Creator, $10/month (coming soon, not on sale yet): unlimited artifacts, 250 people each, 10 GB of storage, public artifacts with 50 GB a month of bandwidth. - People an artifact is shared with are free on every plan. A server plan includes Creator. - Your own server. Small $25/month (2 GB memory, 1 CPU), Medium $50 (4 GB, 2 CPUs), Large $100 (8 GB, 4 CPUs). No limit on apps or users. - Server plans are paid monthly, with no free trial. Cancel within 14 days for a full refund. - After cancelling, the server's data is kept for 60 days, then deleted. ## Docs - [Artifacts](https://docs.astrodock.ai/artifacts.html): the manifest, rules, actions, the page client and the CLI. - [Building apps on Astrodock](https://docs.astrodock.ai/AGENTS.md): the app.json contract, layout, environment and the CLI. - [Long form](https://docs.astrodock.ai/building-apps.md) - [Self-hosting](https://astrodock.ai/self-hosting.html) - [Pricing](https://astrodock.ai/pricing.html)