{
  "manifest_version": "1.0.0",
  "template": {
    "id": "faf8e9b7-2a60-4837-9b1a-d2550775ea3b",
    "slug": "paperclip-ai-agent-company-lite",
    "name": "Paperclip - AI Agent Company (Lite)",
    "description": "Open-source control plane for AI agents. Single service, embedded Postgres.",
    "url": "https://railway.com/deploy/paperclip-ai-agent-company-lite",
    "upstream": {
      "repo_url": "https://github.com/alphasecio/paperclip"
    }
  },
  "services": [
    {
      "name": "paperclip",
      "source": {
        "repo": "https://github.com/alphasecio/paperclip"
      },
      "needs_volume": true,
      "volume_mount_path": "/paperclip",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "HOST",
      "service": "paperclip",
      "description": "Paperclip host",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "PORT",
      "service": "paperclip",
      "description": "Paperclip port",
      "secret": false,
      "strategy": "default",
      "default": "3100"
    },
    {
      "key": "NODE_ENV",
      "service": "paperclip",
      "description": "Node environment",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "DO_NOT_TRACK",
      "service": "paperclip",
      "description": "Do not track",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PAPERCLIP_HOME",
      "service": "paperclip",
      "description": "Paperclip home dir",
      "secret": false,
      "strategy": "default",
      "default": "/paperclip"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "paperclip",
      "description": "BetterAuth secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PAPERCLIP_PUBLIC_URL",
      "service": "paperclip",
      "description": "Paperclip public URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PAPERCLIP_AGENT_JWT_SECRET",
      "service": "paperclip",
      "description": "Paperclip agent JWT secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PAPERCLIP_ALLOWED_HOSTNAMES",
      "service": "paperclip",
      "description": "Paperclip allowed hostnames",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PAPERCLIP_TELEMETRY_DISABLED",
      "service": "paperclip",
      "description": "Paperclip telemetry",
      "secret": false,
      "strategy": "default",
      "default": "1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "paperclip-ai-agent-company-lite"
      }
    },
    "cli": "railway deploy --template paperclip-ai-agent-company-lite",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "faf8e9b7-2a60-4837-9b1a-d2550775ea3b",
            "serializedConfig": {
              "services": {
                "c033cd01-0f5e-463d-9fcc-a9213138b138": {
                  "icon": null,
                  "name": "paperclip",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "alphasecio/paperclip",
                    "branch": null,
                    "rootDirectory": "/railway"
                  },
                  "variables": {
                    "HOST": {
                      "isOptional": true,
                      "description": "Paperclip host",
                      "defaultValue": "0.0.0.0"
                    },
                    "PORT": {
                      "isOptional": true,
                      "description": "Paperclip port",
                      "defaultValue": "3100"
                    },
                    "NODE_ENV": {
                      "isOptional": true,
                      "description": "Node environment",
                      "defaultValue": "production"
                    },
                    "DO_NOT_TRACK": {
                      "isOptional": true,
                      "description": "Do not track",
                      "defaultValue": "1"
                    },
                    "GEMINI_API_KEY": {
                      "isOptional": true,
                      "description": "Gemini API key",
                      "defaultValue": ""
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "OpenAI API key",
                      "defaultValue": ""
                    },
                    "PAPERCLIP_HOME": {
                      "isOptional": true,
                      "description": "Paperclip home dir",
                      "defaultValue": "/paperclip"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Anthropic API key",
                      "defaultValue": ""
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": true,
                      "description": "BetterAuth secret",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    },
                    "PAPERCLIP_PUBLIC_URL": {
                      "isOptional": true,
                      "description": "Paperclip public URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PAPERCLIP_AGENT_JWT_SECRET": {
                      "isOptional": true,
                      "description": "Paperclip agent JWT secret",
                      "defaultValue": "{{PAPERCLIP_AGENT_JWT_SECRET}}"
                    },
                    "PAPERCLIP_ALLOWED_HOSTNAMES": {
                      "isOptional": true,
                      "description": "Paperclip allowed hostnames",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PAPERCLIP_TELEMETRY_DISABLED": {
                      "isOptional": true,
                      "description": "Paperclip telemetry",
                      "defaultValue": "1"
                    },
                    "PAPERCLIP_AUTH_DISABLE_SIGN_UP": {
                      "isOptional": true,
                      "description": "Paperclip disable signup",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3100": {
                        "port": 3100
                      }
                    }
                  },
                  "volumeMounts": {
                    "c033cd01-0f5e-463d-9fcc-a9213138b138": {
                      "mountPath": "/paperclip"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T06:35:14.582Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_9a473bdcec2143c18e56",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 221,
    "typical_build_seconds": 111,
    "typical_start_seconds": 31,
    "slowest_service": "paperclip"
  }
}
