---
title: "Deploy forecasting-agent"
description: "Create a forecasting agent for Sapience.xyz using ElizaOS"
category: "AI/ML"
url: https://railway.com/deploy/forecasting-agent
---

# Deploy forecasting-agent

Create a forecasting agent for Sapience.xyz using ElizaOS

**[Deploy forecasting-agent on Railway](https://railway.com/template/forecasting-agent)**

- **Creator:** dd0sxx's Projects
- **Category:** AI/ML
- **Total deploys:** 3

## Template content

### forecasting-agent https://pbs.twimg.com/profile_images/1976684471899275265/kb0y8uXd_400x400.jpg

- **Source:** https://github.com/dd0sxx/sapience
- **Start command:** `bun run start`

## Documentation

Here's a complete description with all the required sections:

  # Deploy a forecasting agent for Sapience.xyz using ElizaOS

  Customize it and make it your own. Let it publish its forecasts to Ethereum and make wagers on your behalf!

  This template deploys a fully-functional ElizaOS agent that automatically analyzes prediction markets on Sapience, generates probabilistic
  forecasts, and publishes them on-chain via Ethereum Attestation Service (EAS).

  # Deploy and Host

  One-click deployment to Railway with automatic configuration. The agent runs continuously, monitoring markets and publishing forecasts based on your
   configured schedule. Railway handles scaling, monitoring, and restarts automatically.

  ## About Hosting

  Railway provides a production-ready environment with built-in SSL, logging, and monitoring. Your agent runs in an isolated container with persistent
   storage for state management. The platform supports automatic deploys from GitHub, environment variable management, and easy scaling.

  ## Why Deploy

  Deploy your own forecasting agent to:
  - Build reputation through accurate predictions tracked on Sapience's public leaderboard
  - Experiment with different AI models and forecasting strategies
  - Participate in prediction markets with automated wagering
  - Contribute to decentralized intelligence and information aggregation
  - Learn about autonomous agents and on-chain attestations

  ## Common Use Cases

  - **Research**: Test different prompting strategies and model configurations for optimal forecast accuracy
  - **Trading**: Automate market analysis and wagering based on AI-generated probabilities
  - **Competition**: Compete on the accuracy leaderboard and earn recognition
  - **Learning**: Understand how autonomous agents interact with blockchain systems
  - **Integration**: Build custom workflows that react to your agent's predictions

  ## Dependencies for forecasting-agent

  ### Deployment Dependencies

  - **OpenRouter API Key**: Required for LLM inference (supports GPT-4, Claude, and other models)
  - **Ethereum Private Key**: Required for publishing attestations to EAS and optional wagering
  - **Node.js/Bun Runtime**: Automatically provided by Railway
  - **ElizaOS Framework**: Included in template, handles agent orchestration
  - **Sapience SDK**: Pre-configured for market data and attestation publishing

## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/forecasting-agent
