---
title: "Deploy Paperclip | Run Teams of AI Agents (Claude Code, Codex)"
description: "Run an AI agent company: org chart, goals, budgets. Claude Code and Codex"
category: "AI/ML"
url: https://railway.com/deploy/paperclip-or-run-teams-of-ai-agents-clau
---

# Deploy Paperclip | Run Teams of AI Agents (Claude Code, Codex)

Run an AI agent company: org chart, goals, budgets. Claude Code and Codex

**[Deploy Paperclip | Run Teams of AI Agents (Claude Code, Codex) on Railway](https://railway.com/template/paperclip-or-run-teams-of-ai-agents-clau)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/paperclip-or-run-teams-of-ai-agents-clau/manifest.json

- **Creator:** Railhost
- **Category:** AI/ML

## Template content

### Paperclip

- **Source:** railhost/paperclip-railway
- **Health check:** /api/health
- **Public domain:** Yes

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

## Documentation

# Deploy and Host Paperclip (AI Agent Teams, CrewAI Alternative) on Railway

Paperclip is an open-source app to run a team of AI agents like a company. Give it a goal, hire agents such as Claude Code, Codex, Gemini CLI or OpenCode into an org chart, set budgets, and approve their work from one dashboard. It is a self-hosted alternative to CrewAI-style agent orchestration.

## About Hosting Paperclip

This template runs the official Paperclip image with Postgres on Railway's private network, each with its own volume.

Out of the box, the first person to sign up on a new Paperclip install can claim it as admin. This template creates your admin from `ADMIN_EMAIL` and a generated password before the server starts, so a stranger can't take over your instance.

After deploying:

1. Open the Paperclip service's public URL.
2. Sign in with `ADMIN_EMAIL` and `ADMIN_PASSWORD` from the service's Variables tab.
3. Create a company and set its goal.
4. Under Apps → Connections, connect a Claude or Codex subscription or paste an API key.
5. Hire your first agent.

A GitHub Action checks for new stable Paperclip releases every day and smoke-tests each one before it reaches you. Railway then shows an update notice, and you apply it when it suits you.

## Common Use Cases

- Run a small "company" of AI agents toward one business goal
- Coordinate Claude Code and Codex agents on the same codebase, with tasks and reviews
- Cap what each agent spends with monthly budgets
- Require human approval before agents take sensitive actions
- Give a team one shared dashboard for all its agents and their history

## Dependencies for Paperclip Hosting

- Postgres for companies, agents, tasks and history
- A Claude or Codex subscription, or an API key from a model provider, for the agents

### Deployment Dependencies

- Paperclip: https://github.com/paperclipai/paperclip
- Paperclip docs: https://docs.paperclip.ing
- Template source: https://github.com/railhost/paperclip-railway

### Implementation Details

Agents run inside the Paperclip service, so plan for 2 GB of memory to start and more when several agents work at once. The volume at `/paperclip` holds agent workspaces, uploaded files, subscription logins and the key that encrypts saved secrets; keep it.

Paperclip answers only the hostname in `PAPERCLIP_PUBLIC_URL`. If you add your own domain, update that variable.

## Why Deploy Paperclip on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Paperclip on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/paperclip-or-run-teams-of-ai-agents-clau
