deploy-hf
Skill2.6k starsChanged 8 months agoBSD-3-ClauseView on GitHub
Deploy an OpenEnv environment to Hugging Face Spaces. Use when asked to deploy, push to Hugging Face, or update a space.
- Installs packages
- Sends data out
Trending
Quiet since October.about the whole repository
Who's talking about huggingface/OpenEnv
- aaif/project-proposals“[Project Proposal] OpenEnv”GitHub · Sep 28, 2026 · 2 reactions
- ProSkillsMD/proskills“[Candidate] huggingface/openenv/.claude/skills/deploy-hf - deploy-hf”GitHub · Oct 5, 2026
- ProSkillsMD/proskills“[Candidate] huggingface/openenv/.claude/skills/alignment-review - alignment-review”GitHub · Oct 5, 2026
- ProSkillsMD/proskills“[Candidate] huggingface/openenv/.agents/skills/openenv-cli - openenv-cli”GitHub · Oct 5, 2026
- sudosubin/agents.nix“agent-skills.github.huggingface.openenv: 0.5.0 → 0.7.0”GitHub · Oct 3, 2026
The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 22
Talked about on GitHub (22 times).
On GitHub · 22
- Sep 28, 2026[Project Proposal] OpenEnv — aaif/project-proposals2 reactions · 1 comment
- Oct 5, 2026[Candidate] huggingface/openenv/.claude/skills/deploy-hf - deploy-hf — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 5, 2026[Candidate] huggingface/openenv/.claude/skills/alignment-review - alignment-review — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 5, 2026[Candidate] huggingface/openenv/.agents/skills/openenv-cli - openenv-cli — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 3, 2026agent-skills.github.huggingface.openenv: 0.5.0 → 0.7.0 — sudosubin/agents.nix0 reactions
17 more on GitHub
- Oct 3, 2026[Add] OpenEnv (huggingface/OpenEnv) — PyTorchKR/landscape0 reactions
- Oct 2, 2026chore(deps): bump openenv from 0.5.0 to 0.6.0 — beer-sakthai/openenv-rl-training0 reactions · 2 comments
- Oct 2, 2026chore(deps): bump openenv from 0.5.0 to 0.6.0 in /openenv-custom-training — beer-sakthai/openenv-rl-training0 reactions · 3 comments
- Sep 29, 2026Add reset schema publication to /schema endpoint — scosman/OpenEnv0 reactions
- Sep 28, 2026agent-skills.github.huggingface.openenv: init at 0.5.0 — sudosubin/agents.nix0 reactions
- Sep 25, 2026chore(deps): bump openenv from 0.4.2 to 0.5.0 in /openenv-custom-training — beer-sakthai/openenv-rl-training0 reactions · 2 comments
- Sep 25, 2026chore(deps): bump openenv from 0.4.2 to 0.5.0 — beer-sakthai/openenv-rl-training0 reactions · 2 comments
- Sep 16, 2026chore(deps): bump openenv from 0.4.1 to 0.4.2 in /openenv-custom-training — beer-sakthai/openenv-rl-training0 reactions · 2 comments
- Sep 16, 2026chore(deps): bump openenv from 0.4.1 to 0.4.2 — beer-sakthai/openenv-rl-training0 reactions · 2 comments
- Sep 15, 2026build(deps): update openenv requirement from >=0.2.0 to >=0.4.2 — Manimaran-tech/swarm_analyst0 reactions
- Aug 27, 2026AsyncGRPO: train OpenEnv harnesses from validated token captures — huggingface/trl0 reactions · 5 comments
- Jul 24, 2026Point the opencode example at huggingface/OpenEnv — huggingface/trl0 reactions · 2 comments
- Jul 7, 2026build(deps): update openenv requirement from >=0.2.0 to >=0.4.1 — Manimaran-tech/swarm_analyst0 reactions · 1 comment
- Jun 23, 2026build(deps): update openenv requirement from >=0.2.0 to >=0.3.1 — Manimaran-tech/swarm_analyst0 reactions · 1 comment
- Jun 10, 2026[dprat0821] Add June watch for open agent training environments — Prompthon-IO/agent-systems-handbook0 reactions
- May 29, 2026mini_swe: stabilize async GRPO validation runs — rycerzes/OpenEnv0 reactions
- May 2, 2024Link Checker Dashboard 🔗 — ahgraber/AIMLbling-about0 reactions
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- hf-cliSkill
- openenv-cliSkill
- alignment-reviewSkill
- generate-openenv-envSkill
- hf-space-recoverySkill
- implementSkill
- pre-submit-prSkill
- releaseSkill
- rfc-checkSkill
- simplifySkill
- sprintSkill
- update-docsSkill
- watch-prSkill
- work-on-issueSkill
- write-testsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 12 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
After implementing new features that need to be tested in production
- Distinctive: line 30
If user specifies: use that environment (e.g., "carla_env", "browser_env")
- Distinctive: line 31
If in environment directory: use current directory
- Distinctive: line 38
If user provides full ID: use it (e.g., "sergiopaniego/carla-env-real-updated")
- Distinctive: line 39
If user provides only space name: construct ID with their username
- Very specific: line 40
Check openenv.yaml for default repo-id
- Distinctive: line 45
IMPORTANT: Always run from the project root directory.
- Very specific: line 47
Before deploying, ensure OpenEnv is installed:
- Distinctive: line 54
If this fails with "does not appear to be a Python project", you're not in the project root.
- Distinctive: line 81
Check the space status at the URL
- Distinctive: line 82
Test with a simple health check once build completes:
- Distinctive: line 172
Solution: Ensure you're passing the correct environment directory path:
- Distinctive: line 191
Check Dockerfile syntax and dependencies
- Very specific: line 192
Verify hardware requirements (GPU spaces need --hardware setting on HF)
- Distinctive: line 193
Check space logs on Hugging Face for detailed errors
- Very specific: line 194
Ensure openenv.yaml is valid
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deploy to Hugging Face Spaces
Deploy an OpenEnv environment to Hugging Face Spaces using the OpenEnv CLI.
When to Use This Skill
- User asks to "deploy to Hugging Face"
- User says "push to Hugging Face Spaces"
- User wants to update an existing space
- After implementing new features that need to be tested in production
Prerequisites
Before deploying, ensure:
- The environment has an
openenv.yamlfile - The environment has a
server/Dockerfile - You have Hugging Face credentials configured (automatic via huggingface-cli)
Instructions
1. Identify the Environment
Determine which environment to deploy:
- If user specifies: use that environment (e.g., "carla_env", "browser_env")
- If in environment directory: use current directory
- Otherwise: ask the user
2. Determine the Repository ID
Repository ID format: username/space-name
- If user provides full ID: use it (e.g., "sergiopaniego/carla-env-real-updated")
- If user provides only space name: construct ID with their username
- Check
openenv.yamlfor default repo-id - Otherwise: ask the user
3. Pre-Deployment Setup
IMPORTANT: Always run from the project root directory.
Before deploying, ensure OpenEnv is installed:
cd /path/to/OpenEnv # Navigate to project root if needed
uv pip install -e .If this fails with "does not appear to be a Python project", you're not in the project root.
4. Run the Deployment Command
Execute the deployment:
PYTHONPATH=src uv run python -m openenv.cli push <environment-dir> --repo-id <username/space-name>Parameters:
<environment-dir>: Path to environment (e.g.,envs/carla_env)--repo-id: Hugging Face Spaces repository ID (e.g.,sergiopaniego/carla-env-real-updated)
Optional flags:
--private: Deploy as a private space--no-interface: Disable the web interface (deploy API-only)--base-image <image>: Override the base Docker image--hardware <hw>/-H <hw>: Request Hugging Face Space hardware (e.g.t4-medium,a10g-small,cpu-basic)
5. Verify Deployment
After successful deployment:
- Note the Space URL returned by the command
- Wait for build to complete:
- CPU environments: ~5 minutes
- GPU environments (CARLA): ~30-60 minutes
- Check the space status at the URL
- Test with a simple health check once build completes:
curl https://<username>-<space-name>.hf.space/health
Example Usage
Deploy carla_env to existing space
PYTHONPATH=src uv run python -m openenv.cli push envs/carla_env --repo-id sergiopaniego/carla-env-real-updatedDeploy echo_env as private space
PYTHONPATH=src uv run python -m openenv.cli push envs/echo_env --repo-id username/my-echo-env --privateDeploy with GPU hardware
PYTHONPATH=src uv run python -m openenv.cli push envs/carla_env --repo-id username/carla-env --hardware t4-mediumDeploy with custom base image
PYTHONPATH=src uv run python -m openenv.cli push envs/browser_env --repo-id username/browser-env --base-image nvidia/cuda:11.8.0-runtime-ubuntu22.04Output Format
Report deployment status:
## Hugging Face Deployment
### Environment
- Environment: <env-name>
- Directory: <path>
- Dockerfile: <path-to-dockerfile>
### Deployment
- Repository ID: <username/space-name>
- Space URL: <https://huggingface.co/spaces/username/space-name>
- Status: ✓ Deployed successfully
### Next Steps
1. Wait for space to build (5 min for CPU, 30-60 min for GPU/CARLA)
2. Visit space URL to check build status
3. Test environment once build completes
### Testing Commands
```bash
# Health check
curl https://<username>-<space-name>.hf.space/health
# Reset environment
curl -X POST https://<username>-<space-name>.hf.space/reset
# Step action
curl -X POST https://<username>-<space-name>.hf.space/step \
-H "Content-Type: application/json" \
-d '{"action_type": "observe"}'
## Troubleshooting
### Error: "ModuleNotFoundError: No module named 'openenv'"
**Solution**: Install OpenEnv first (must be run from project root):
```bash
cd /path/to/OpenEnv # Navigate to project root
uv pip install -e .Error: "does not appear to be a Python project"
Cause: You're not in the project root directory.
Solution: Navigate to the OpenEnv project root where pyproject.toml exists:
cd /Users/sergiopaniegoblanco/Documents/Projects/OpenEnv # Adjust path
uv pip install -e .Error: "Directory does not exist"
Solution: Ensure you're passing the correct environment directory path:
# Correct
PYTHONPATH=src uv run python -m openenv.cli push envs/carla_env --repo-id ...
# Incorrect
PYTHONPATH=src uv run python -m openenv.cli push carla_env --repo-id ...Error: "Authentication required"
Solution: Login to Hugging Face CLI first:
huggingface-cli loginSpace build fails
Solutions:
- Check Dockerfile syntax and dependencies
- Verify hardware requirements (GPU spaces need
--hardwaresetting on HF) - Check space logs on Hugging Face for detailed errors
- Ensure
openenv.yamlis valid
Common Environments
| Environment | Path | Typical Repo ID | Hardware |
| carla_env (standalone) | envs/carla_env | username/carla-env-real | GPU (T4/A10G) |
| carla_env (mock) | envs/carla_env | username/carla-env-mock | CPU |
| echo_env | envs/echo_env | username/echo-env | CPU |
| browser_env | envs/browser_env | username/browser-env | CPU |
| tbench2_env | envs/tbench2_env | username/tbench2-env | CPU |
Notes
- Deployment requires Hugging Face authentication (automatic if
huggingface-cliis logged in) - By default, spaces are public (use
--privatefor private spaces) - By default, web interface is enabled (use
--no-interfacefor API-only) - GPU spaces can request hardware via
--hardware(e.g.--hardware t4-medium) - Build times vary: CPU (~5 min), GPU with CARLA (~30-60 min)
- The CLI automatically moves Dockerfile to repository root for Hugging Face compatibility
Related Documentation
- DEPLOYMENT_GUIDE.md - Detailed deployment modes
- README.md - OpenEnv overview
- Hugging Face Spaces Docs: https://huggingface.co/docs/hub/spaces
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

