Prerequisites
Artifacts is a Bun + Turborepo monorepo. You’ll need a few services available before the first boot.
- Bun — matches the repository package manager.
- Node.js 24+ — required to run the apps.
- PostgreSQL — any Postgres-compatible database, such as Neon.
- S3-compatible storage — for artifact content, such as Cloudflare R2.
- Google OAuth credentials — for interactive browser login.
1. Install and configure
1
Install dependencies
From the repository root:
2
Create your environment file
3
Run database migrations
Apply migrations before the first boot:When you change schema definitions later, regenerate migrations with
bun run db:generate.2. Start the app
Run the web and API apps together through Turbo:3. Install the CLI
Build the TypeScript CLI and put theartifacts command on your PATH:
4. Log in
Point the CLI at your local services, then start browser login:~/.config/agent-artifacts/credentials.json with mode 0600.
5. Claim a username
Your personal workspace slug comes from your username. If you haven’t claimed one yet:6. Publish your first artifact
1
Create a project
2
Write a Markdown file
3
Publish it
push infers the type, title, and slug from the file. Override them with --type, --title, and --slug.Next steps
Learn the artifact model
Versions, content types, and how storage works.
Share and control access
Public, private, email allowlists, and share links.
CLI reference
Every command, flag, and environment variable.
Connect an MCP client
Give agents structured artifact tools over MCP.