The openenv CLI provides a set of commands for building, validating, and pushing environments to Hugging Face Spaces or a custom Docker registry. For an end-to-end tutorial on building environments with OpenEnv, see the building an environment guide.
[[autodoc]] openenv.cli.commands.init.init
Import a supported third-party source environment into a generated OpenEnv
wrapper package. The command detects the source format from the directory
contents, so ORS/OpenReward and Prime Intellect Verifiers sources do not
require --type in the common case.
The generated wrapper vendors the source tree into the package and includes
vendored files as package data, so non-secret fixture/data files are available to
the environment server at runtime. The importer carries portable dependencies
from source pyproject.toml and requirements.txt files into the generated
environment, skips VCS/cache/build directories and common secret file patterns
such as .env, secrets.yaml, and private key files, and excludes compiled
binary artifacts; review the generated vendor/ directory before publishing a
wrapper.
openenv import path/to/source --name my_env --output-dir ./envs
openenv import path/to/source --name my_env --output-dir ./envs --env-class MyEnv.. automodule:: openenv.cli.commands.import_env
:members:
:undoc-members:
:show-inheritance:
[[autodoc]] openenv.cli.commands.build.build
Use an explicit profile to produce the RFC 008 validation plan and shared report schema:
openenv validate path/to/env --profile static
openenv validate path/to/env --profile runtime --json
openenv validate --url http://127.0.0.1:8000 --profile runtime --json
openenv validate path/to/env --profile full --output validation.jsonstatic checks source and packaging, runtime adds a launched or connected
server, and full records every policy criterion while marking unavailable
remote capabilities as skipped. Local reports never claim official
certification. Automatic local launch executes the environment checkout as the
current user and is intended only for trusted development source; use --url
for a server you already isolated.
This command intentionally targets the served OpenEnv spec. Shared reports
record spec, adapter, and execution-model provenance, but openenv validate
does not auto-dispatch external task-package formats. A separate spec-selected
task workflow is tracked in issue #898.
[[autodoc]] openenv.cli.commands.validate.validate
[[autodoc]] openenv.cli.commands.push.push
Local serving is not implemented in the CLI yet. This command exits non-zero and prints alternative ways to run an environment server.
[[autodoc]] openenv.cli.commands.serve.serve
[[autodoc]] openenv.cli.commands.fork.fork
Installs an openenv-cli skill into your AI assistant's skills directory so
it knows the openenv CLI is available and what each command does. Supports
Claude Code, Cursor, Codex, and OpenCode.
Install for a single assistant (project-local):
openenv skills add --claude # → .claude/skills/openenv-cli/
openenv skills add --cursor # → .cursor/skills/openenv-cli/
openenv skills add --codex # → .codex/skills/openenv-cli/
openenv skills add --opencode # → .opencode/skills/openenv-cli/Multiple flags can be combined — openenv skills add --claude --cursor installs
for both at once. The skill file is written to a central location
(.agents/skills/openenv-cli/) and each agent directory gets a symlink, so
there is only one copy to update.
Install globally (user-level, across all projects):
openenv skills add --claude --global # → ~/.claude/skills/openenv-cli/Overwrite an existing installation (e.g. after upgrading openenv):
openenv skills add --claude --forcePreview the skill content without installing:
openenv skills previewInstall to a custom path (for non-standard agent setups):
openenv skills add --dest /path/to/my-agent/skills/[[autodoc]] openenv.cli.commands.skills.skills_add
[[autodoc]] openenv.cli.commands.skills.skills_preview
[[autodoc]] openenv.cli.main.main
[[autodoc]] openenv.cli._cli_utils.validate_env_structure
[[autodoc]] openenv.cli._validation.validate_running_environment
[[autodoc]] openenv.cli._validation.validate_multi_mode_deployment
[[autodoc]] openenv.cli._validation.get_deployment_modes
[[autodoc]] openenv.cli._validation.format_validation_report
[[autodoc]] openenv.cli._validation.build_local_validation_json_report