What is an Environment?
An environment is a long-running server that implements the Open Reward Standard (ORS) protocol for agent environments. When an environment is created, a workspace will be provisioned, giving you storage and isolation. What environments provide:- Tools: Functions that agents can call to interact with the environment
- Tasks: Specific problems or challenges for agents to solve
- Prompts: Instructions given to agents for each task
- Rewards: Feedback signals indicating task progress or completion
- Sessions: Stateful, durable connections with agents
- Automatic scaling: Environments scale up and down based on demand
Environment Lifecycle
1. Creation
Create environments through the OpenReward Web UI:2. Deployment
Once you have created your environment, you can deploy your ORS server code to it: See Local Development for more details on how to develop your environment server locally. Option A - GitHub (Recommended):3. Running
Once deployed, agents can connect to your environment: Agent interaction:4. Automatic Scaling
Environments automatically scale based on concurrent sessions. Autoscaling settings are configurable when making the environment and can be changed in the environment settings page. Benefits:- Pay only for active usage
- No manual scaling needed
- Always ready when agents connect
5. Updates
Pushing to the connected GitHub repository will automatically build and deploy a new version of the environment. Via GitHub (automatic):Sessions
What is a Session?
A session is a durable, stateful connection between an agent and your environment:- Unique: Each session has a unique ID, this is internally used to make sure you’re connecting to the correct environment server.
- Stateful: Environment can maintain state between tool calls
- Time-limited: Sessions expire after inactivity or when the session is deleted.
- Sticky: Session stays connected to the same server instance
Using Sessions
Python SDK:Tool Calling
Environments provide tools that agents can call: Example tool call:output: The tool’s return valuefinished: Whether the task is completereward: Numeric feedback signalerror: Error message if tool call failed
Storage
Cloud Storage Integration
Each environment includes cloud storage accessible at/orwd_data/:
Usage in environment server:
/orwd_data/ is accessible to both your environment server and any sandboxes you create.
See Storage & Buckets for detailed configuration.

