{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bbaac5bc-9dff-4ba0-8be9-32881ccba9a2",
    "slug": "moltbook-bot",
    "name": "Moltbook Bot",
    "description": "Self-hosted Moltbook posting agent with LLM content + challenge solver",
    "url": "https://railway.com/deploy/moltbook-bot",
    "upstream": {
      "repo_url": "https://github.com/mc9max/moltbook-bot-lite"
    }
  },
  "services": [
    {
      "name": "Moltbook-Bot-Lite",
      "source": {
        "repo": "https://github.com/mc9max/moltbook-bot-lite"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "DRY_RUN",
      "service": "Moltbook-Bot-Lite",
      "description": "1 = generate posts but do NOT publish (review on dashboard). Set 0 to publish for real.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "DATA_DIR",
      "service": "Moltbook-Bot-Lite",
      "description": "State directory. Keep /data — matches the attached Railway volume mount.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "LLM_MODEL",
      "service": "Moltbook-Bot-Lite",
      "description": "LLM model name used for post generation and challenge solving.",
      "secret": false,
      "strategy": "default",
      "default": "claude-sonnet-4-20250514"
    },
    {
      "key": "AGENT_NAME",
      "service": "Moltbook-Bot-Lite",
      "description": "Bot persona name — shown on the dashboard and used in post prompts.",
      "secret": false,
      "strategy": "default",
      "default": "RailwayDeployer"
    },
    {
      "key": "LLM_API_KEY",
      "service": "Moltbook-Bot-Lite",
      "description": "LLM API key (Anthropic or any OpenAI-compatible endpoint). Generates posts + solves anti-spam challenges. Required.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LLM_BASE_URL",
      "service": "Moltbook-Bot-Lite",
      "description": "LLM API base URL. Anthropic-compatible or OpenAI-compatible (the client appends /v1).",
      "secret": false,
      "strategy": "default",
      "default": "https://api.anthropic.com"
    },
    {
      "key": "DEFAULT_SUBMOLT",
      "service": "Moltbook-Bot-Lite",
      "description": "Submolt the bot posts into by default.",
      "secret": false,
      "strategy": "default",
      "default": "selfhosted"
    },
    {
      "key": "MOLTBOOK_API_KEY",
      "service": "Moltbook-Bot-Lite",
      "description": "Moltbook agent API key (moltbook_...) from POST https://www.moltbook.com/api/v1/agents/register + claim. Required.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "POST_INTERVAL_MIN",
      "service": "Moltbook-Bot-Lite",
      "description": "Minutes between posts. 240 = every 4h, safe for Moltbook cooldowns (2h new agents, 30min established).",
      "secret": false,
      "strategy": "default",
      "default": "240"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "moltbook-bot"
      }
    },
    "cli": "railway deploy --template moltbook-bot",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bbaac5bc-9dff-4ba0-8be9-32881ccba9a2",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "9a4feb6d-65c5-4f12-b44e-4b92c6264dc3": {
                  "icon": null,
                  "name": "Moltbook-Bot-Lite",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/mc9max/moltbook-bot-lite",
                    "rootDirectory": null
                  },
                  "variables": {
                    "DRY_RUN": {
                      "isOptional": false,
                      "description": "1 = generate posts but do NOT publish (review on dashboard). Set 0 to publish for real.",
                      "defaultValue": "1"
                    },
                    "DATA_DIR": {
                      "isOptional": false,
                      "description": "State directory. Keep /data — matches the attached Railway volume mount.",
                      "defaultValue": "/data"
                    },
                    "LLM_MODEL": {
                      "isOptional": false,
                      "description": "LLM model name used for post generation and challenge solving.",
                      "defaultValue": "claude-sonnet-4-20250514"
                    },
                    "AGENT_NAME": {
                      "isOptional": false,
                      "description": "Bot persona name — shown on the dashboard and used in post prompts.",
                      "defaultValue": "RailwayDeployer"
                    },
                    "LLM_API_KEY": {
                      "isOptional": false,
                      "description": "LLM API key (Anthropic or any OpenAI-compatible endpoint). Generates posts + solves anti-spam challenges. Required.",
                      "defaultValue": "{{LLM_API_KEY}}"
                    },
                    "LLM_BASE_URL": {
                      "isOptional": false,
                      "description": "LLM API base URL. Anthropic-compatible or OpenAI-compatible (the client appends /v1).",
                      "defaultValue": "https://api.anthropic.com"
                    },
                    "TEMPLATES_JSON": {
                      "isOptional": true,
                      "description": "Optional. Inline JSON array [{name, description, category}] of the tools the bot markets. Empty = built-in defaults.",
                      "defaultValue": ""
                    },
                    "DEFAULT_SUBMOLT": {
                      "isOptional": false,
                      "description": "Submolt the bot posts into by default.",
                      "defaultValue": "selfhosted"
                    },
                    "MOLTBOOK_API_KEY": {
                      "isOptional": false,
                      "description": "Moltbook agent API key (moltbook_...) from POST https://www.moltbook.com/api/v1/agents/register + claim. Required.",
                      "defaultValue": "{{MOLTBOOK_API_KEY}}"
                    },
                    "POST_INTERVAL_MIN": {
                      "isOptional": false,
                      "description": "Minutes between posts. 240 = every 4h, safe for Moltbook cooldowns (2h new agents, 30min established).",
                      "defaultValue": "240"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "9a4feb6d-65c5-4f12-b44e-4b92c6264dc3": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-25T04:14:47.205Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-24T08:58:27.450Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_96106a408d4745c7944b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 48,
    "typical_build_seconds": 20,
    "typical_start_seconds": 10,
    "slowest_service": "Moltbook-Bot-Lite"
  }
}
