What is an Environment?
An environment is a runtime context that:- Contains one or more components
- Holds configuration (environment variables, secrets)
- Can run locally or in the cloud
- Provides isolation between deployments
Creating an Environment
Create a new environment with the CLI:Configuration
Environments support configuration through environment variables.Setting Variables
Accessing Variables in Components
Components access environment variables through the asterai host API:Secrets
For sensitive values like API keys, use the cloud console to set secrets. Secrets are encrypted at rest and only decrypted at runtime.Running Environments
Locally
Run an environment on your machine for development and testing:In the Cloud
Push your environment to run it on asterai’s infrastructure:Composing Components
Environments can contain multiple components that work together. Each component can import and call functions from other components in the same environment. Example: An environment with a web scraper component and a data processing component:Inspecting Environments
View the details of an environment:- Components included
- Configuration variables (values hidden for secrets)
- Version information
Managing Environments
Next Steps
- Hello World guide: Create your first component and environment
- Components: Learn how to build components
- CLI reference: Full CLI command reference