Skip to main content

Overview

You can develop and test OpenReward environments locally before deploying to production. This enables:
  • Rapid Iteration: Test changes instantly without waiting for deployments
  • Debugging: Use debuggers and inspect environment behavior
  • Offline Development: Work without internet connection
  • Cost Savings: No cloud resources used during development

Quick Start: Testing Environments Locally

1. Install Dependencies

2. Write Your Environment Server

3. Run the Server

Output:

4. Test the Environment

Alternatively, if you don’t want the whole client to point to http://localhost:8080 just change the base_url when getting the environment, like this:
Run:
Output:

Local Development with Docker

Build and Run Locally

Next Steps

Your First Environment

Complete tutorial for building an environment

GitHub Deployment

Deploy your local environment to OpenReward

Secret Management

Manage secrets in local and production environments

Environments

Understand environment architecture