{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ca295d6a-a952-40a8-a05a-79e0c4e706d0",
    "slug": "paperclip-ai-teams",
    "name": "Paperclip AI Teams",
    "description": "Run AI agent teams (Claude Code, Codex). Owner seeded, invite-only sign-up.",
    "url": "https://railway.com/deploy/paperclip-ai-teams",
    "upstream": {
      "image": "ghcr.io/youssefsiam38/paperclip-railway:1.2.0"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "paperclip",
      "source": {
        "image": "ghcr.io/youssefsiam38/paperclip-railway:1.2.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/paperclip",
      "http": true
    },
    {
      "name": "db",
      "source": {
        "image": "postgres:18.2-alpine3.23"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "storage",
      "source": {
        "image": "ghcr.io/youssefsiam38/paperclip-railway-storage:1.2.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "paperclip",
      "description": "Port Railway routes traffic and health checks to (the front door, 3100). Keep it.",
      "secret": false,
      "strategy": "default",
      "default": "3100"
    },
    {
      "key": "ADMIN_NAME",
      "service": "paperclip",
      "description": "Display name of the owner account.",
      "secret": false,
      "strategy": "default",
      "default": "Owner"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "paperclip",
      "description": "Your email. The owner account is created with it before the app goes live; you sign in with it.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URL",
      "service": "paperclip",
      "description": "PostgreSQL connection string (bundled db service, private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "paperclip",
      "description": "The owner's initial password, generated. Copy it from here to sign in; change it in Paperclip later.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "paperclip",
      "description": "Storage access key, taken from the storage service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "paperclip",
      "description": "Signs login sessions, generated. Changing it signs everyone out.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PAPERCLIP_PUBLIC_URL",
      "service": "paperclip",
      "description": "The address you open Paperclip at. Change it to https://your.domain after adding a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "paperclip",
      "description": "Storage secret key, taken from the storage service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PAPERCLIP_SIGNUP_MODE",
      "service": "paperclip",
      "description": "invite-only: accounts only from invitation links. closed: nobody else. open: anyone (upstream default).",
      "secret": false,
      "strategy": "default",
      "default": "invite-only"
    },
    {
      "key": "PAPERCLIP_AGENT_JWT_SECRET",
      "service": "paperclip",
      "description": "Signs the short-lived tokens agents use to call Paperclip, generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PAPERCLIP_STORAGE_PROVIDER",
      "service": "paperclip",
      "description": "s3 stores uploads in the bundled RustFS service; local_disk keeps them on the /paperclip volume.",
      "secret": false,
      "strategy": "default",
      "default": "s3"
    },
    {
      "key": "PAPERCLIP_STORAGE_S3_BUCKET",
      "service": "paperclip",
      "description": "Bucket for uploads; created at start if missing.",
      "secret": false,
      "strategy": "default",
      "default": "paperclip"
    },
    {
      "key": "PAPERCLIP_STORAGE_S3_REGION",
      "service": "paperclip",
      "description": "Region name sent to the S3 API (RustFS accepts any).",
      "secret": false,
      "strategy": "default",
      "default": "us-east-1"
    },
    {
      "key": "PAPERCLIP_SECRETS_MASTER_KEY",
      "service": "paperclip",
      "description": "Encrypts the secrets you store in Paperclip, generated. Never change it after deploying.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PAPERCLIP_STORAGE_S3_ENDPOINT",
      "service": "paperclip",
      "description": "The bundled RustFS S3 API on Railway's private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "paperclip",
      "description": "The first start pulls a large image and applies ~280 database migrations.",
      "secret": false,
      "strategy": "default",
      "default": "900"
    },
    {
      "key": "PAPERCLIP_TOOL_ACTION_SIGNING_SECRET",
      "service": "paperclip",
      "description": "Signs approvals for agent tool actions, generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PAPERCLIP_STORAGE_S3_FORCE_PATH_STYLE",
      "service": "paperclip",
      "description": "Path-style S3 URLs, required for RustFS on a private hostname.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "POSTGRES_DB",
      "service": "db",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "default",
      "default": "paperclip"
    },
    {
      "key": "POSTGRES_USER",
      "service": "db",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "paperclip"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "db",
      "description": "PostgreSQL password, generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "storage",
      "description": "RustFS S3 API port on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "RUSTFS_ACCESS_KEY",
      "service": "storage",
      "description": "RustFS access key, generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RUSTFS_SECRET_KEY",
      "service": "storage",
      "description": "RustFS secret key, generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "paperclip-ai-teams"
      }
    },
    "cli": "railway deploy --template paperclip-ai-teams",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ca295d6a-a952-40a8-a05a-79e0c4e706d0",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "40e7eba7-4ee0-4de7-b0fc-da3216bb5709": {
                  "icon": null,
                  "name": "paperclip",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/youssefsiam38/paperclip-railway:1.2.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes traffic and health checks to (the front door, 3100). Keep it.",
                      "defaultValue": "3100"
                    },
                    "ADMIN_NAME": {
                      "isOptional": false,
                      "description": "Display name of the owner account.",
                      "defaultValue": "Owner"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Your email. The owner account is created with it before the app goes live; you sign in with it.",
                      "defaultValue": "{{ADMIN_EMAIL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string (bundled db service, private network).",
                      "defaultValue": "postgres://paperclip:${{db.POSTGRES_PASSWORD}}@${{db.RAILWAY_PRIVATE_DOMAIN}}:5432/paperclip"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "The owner's initial password, generated. Copy it from here to sign in; change it in Paperclip later.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "GEMINI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Lets Gemini CLI agents run; Google requires a key restricted to the Gemini API."
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Lets Codex agents run (platform.openai.com)."
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Lets Claude Code agents run (console.anthropic.com). Can also be set per agent in Paperclip."
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Storage access key, taken from the storage service.",
                      "defaultValue": "${{storage.RUSTFS_ACCESS_KEY}}"
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Signs login sessions, generated. Changing it signs everyone out.",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    },
                    "PAPERCLIP_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "The address you open Paperclip at. Change it to https://your.domain after adding a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Storage secret key, taken from the storage service.",
                      "defaultValue": "${{storage.RUSTFS_SECRET_KEY}}"
                    },
                    "PAPERCLIP_SIGNUP_MODE": {
                      "isOptional": false,
                      "description": "invite-only: accounts only from invitation links. closed: nobody else. open: anyone (upstream default).",
                      "defaultValue": "invite-only"
                    },
                    "CLAUDE_CODE_OAUTH_TOKEN": {
                      "isOptional": true,
                      "description": "Optional. Use a Claude Pro/Max subscription instead of an API key: run `claude setup-token` locally and paste it."
                    },
                    "PAPERCLIP_AGENT_JWT_SECRET": {
                      "isOptional": false,
                      "description": "Signs the short-lived tokens agents use to call Paperclip, generated.",
                      "defaultValue": "{{PAPERCLIP_AGENT_JWT_SECRET}}"
                    },
                    "PAPERCLIP_STORAGE_PROVIDER": {
                      "isOptional": false,
                      "description": "s3 stores uploads in the bundled RustFS service; local_disk keeps them on the /paperclip volume.",
                      "defaultValue": "s3"
                    },
                    "PAPERCLIP_STORAGE_S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket for uploads; created at start if missing.",
                      "defaultValue": "paperclip"
                    },
                    "PAPERCLIP_STORAGE_S3_REGION": {
                      "isOptional": false,
                      "description": "Region name sent to the S3 API (RustFS accepts any).",
                      "defaultValue": "us-east-1"
                    },
                    "PAPERCLIP_SECRETS_MASTER_KEY": {
                      "isOptional": false,
                      "description": "Encrypts the secrets you store in Paperclip, generated. Never change it after deploying.",
                      "defaultValue": "{{PAPERCLIP_SECRETS_MASTER_KEY}}"
                    },
                    "PAPERCLIP_STORAGE_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "The bundled RustFS S3 API on Railway's private network.",
                      "defaultValue": "http://${{storage.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "The first start pulls a large image and applies ~280 database migrations.",
                      "defaultValue": "900"
                    },
                    "PAPERCLIP_TOOL_ACTION_SIGNING_SECRET": {
                      "isOptional": false,
                      "description": "Signs approvals for agent tool actions, generated.",
                      "defaultValue": "{{PAPERCLIP_TOOL_ACTION_SIGNING_SECRET}}"
                    },
                    "PAPERCLIP_STORAGE_S3_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Path-style S3 URLs, required for RustFS on a private hostname.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3100": {
                        "port": 3100
                      }
                    }
                  },
                  "volumeMounts": {
                    "40e7eba7-4ee0-4de7-b0fc-da3216bb5709": {
                      "mountPath": "/paperclip"
                    }
                  }
                },
                "9c414cbf-548d-4af8-9c88-2d8e8e00a4a6": {
                  "icon": null,
                  "name": "db",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:18.2-alpine3.23"
                  },
                  "variables": {
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "defaultValue": "paperclip"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "defaultValue": "paperclip"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL password, generated.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "9c414cbf-548d-4af8-9c88-2d8e8e00a4a6": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "e01cb060-d219-48e6-a58c-14dfd07df788": {
                  "icon": null,
                  "name": "storage",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/youssefsiam38/paperclip-railway-storage:1.2.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "RustFS S3 API port on the private network.",
                      "defaultValue": "9000"
                    },
                    "RUSTFS_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "RustFS access key, generated.",
                      "defaultValue": "{{RUSTFS_ACCESS_KEY}}"
                    },
                    "RUSTFS_SECRET_KEY": {
                      "isOptional": false,
                      "description": "RustFS secret key, generated.",
                      "defaultValue": "{{RUSTFS_SECRET_KEY}}"
                    }
                  },
                  "volumeMounts": {
                    "e01cb060-d219-48e6-a58c-14dfd07df788": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "paperclip",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-30T22:14:51.843Z",
  "generator_version": "0.1.0"
}
