
One command
to init your
dev machine.
Python, Node.js, Rust, Go — installed, mirrored, PATH-configured. All in one line. Zero sudo. SQLite manifest for clean rollback.
Built for AI agents.
Not just developers.
OneInit is the first environment initializer designed for the AI era. Every command has a JSON mode. Every operation is parseable. AI agents don't read terminal output — they read structured data.
JSON-First Output
Every command supports --json. Structured output that AI agents parse directly. No text scraping needed.
{
"status": "success",
"action": "install",
"package": "python3.11",
"install_path": "~/.oneinit/envs/python3.11",
"duration_ms": 3420
}AI Skill Installer
One command installs the OneInit Skill into ZCode, Claude, Codex, and Cursor. AI agents can then install tools, capture environments, and migrate machines autonomously.
$ oneinit skill install
[OK] installed -> zcode/codex/claude/agents
[OK] Skill installed to 4 AI agentsAgent Installation Guide
Give your AI assistant one prompt. It clones the repo, builds the binary, installs tools, and configures the Skill. Zero human intervention.
$ curl -fsSL https://raw.githubusercontent.com/
oneinitAI/oneinit/main/install.sh | sh
$ oneinit skill install
$ oneinit install python3.11 --json
$ oneinit install node20 --jsonAI Agent Autonomous DevOps
AI agents can capture environments, export backups, and restore on new machines. CI/CD pipelines can self-bootstrap with one command. Zero manual config.
# Agent-initiated migration:
oneinit capture -o env.yaml
oneinit export --include-envs
oneinit import backup.tar.gz --force$ oneinit install python3.11 --json → AI reads {"status":"success")
Installing Python
should not take 30 minutes.
The Developer's Afternoon
One Command
New machine = hours of setup. Until now.
Install, configure, rollback. Clean.
Install
Write a YAML recipe with the download URL, SHA256, and install steps. Drop it in ~/.oneinit/recipes/.
Verify
OneInit downloads the archive, verifies the SHA256 checksum, and extracts it to a sandboxed directory.
Configure
Mirror sources are auto-configured. PATH entries are added. Config files are written. All tracked in SQLite.
Rollback
Uninstall removes everything: PATH entries, config files, install directory, and manifest record. Complete.
Publish YAML.
Anyone installs.
Like npm, but for dev tools. Write a recipe. Push to GitHub. One command installs it anywhere.
Built-in security: every recipe is SHA256-verified before installation. Users confirm before anything runs.
name: node20
version: "20.18.1"
description: "Node.js 20 LTS"
platforms:
windows:
url: "https://nodejs.org/..."
sha256: "56e5aacd..."
install_type: "zip_extract"
post_install:
config_files:
- path: ".npmrc"
template: "registry={{mirror_npm}}"
maintainer:
github: "BG4JTS"One repo.
Whole team in sync.
Fork the team template, edit team.yaml (tools, mirrors, env vars, PATH, config files), push — and OneInit auto-detects on every run and syncs missing tools with your confirmation. New teammate? One command.
Ed25519-signed team.yaml is pinned on first add and verified on every sync — tampered content is refused. Recipes that run commands stay denied by default (--allow-exec).
# 团队环境定义 team.yaml(fork 模板后修改)
team:
name: "WebTeam"
signing_key: "d8ee1d1c..." # 可选:Ed25519 公钥
envs:
node: "20" # → node20
python: "3.11" # → python3.11
mirrors:
pip: "tsinghua"
npm: "npmmirror"
env_vars:
NODE_ENV: "development"
config_files:
- path: "{{user_home}}/.npmrc"
template: "registry={{mirror_npm}}"One command.
4 tools and counting.
The recipe list is fetched live from the registry. Builtin recipes work out of the box; remote recipes install with one command.
Python + pip + 清华源
$ oneinit install python3.11Node.js 20 LTS + npm 淘宝源
$ oneinit install node20Go 工具链
$ oneinit install goTemurin JDK 17 LTS
$ oneinit install java17Need more tools? Submit a recipe request →github.com/oneinitAI/oneinit-recipes
Auto Mirror Config
pip uses Tsinghua. npm uses npmmirror. No manual setup. No config files. Works on every install.
7 Language Detectors
Scan any machine: Python, Node, Git, Rust, Go, Java, Docker. Plus custom detectors via scan_config.yaml.
Environment Migration
Export your entire setup as tar.gz. Import on a new machine. Tools, configs, package lists — everything restored.
Clean Uninstall
SQLite manifest tracks every PATH entry and config file. Uninstall removes everything. No leftovers. No guessing.
One line. Done.
Pick your method. All install the same binary.
$ curl -fsSL https://raw.githubusercontent.com/oneinitAI/oneinit/main/install.sh | shZero prerequisites. Auto-detects OS and architecture.
Let AI do it.
Copy. Paste. Done.
Don't want to open a terminal? Ask ChatGPT, Claude, or ZCode to install OneInit for you. One prompt is all it takes.
Install OneInit on this machine and set up my dev environment.
Follow the guide at:
https://raw.githubusercontent.com/oneinitAI/oneinit/main/INSTALL_AGENT.mdWorks with ChatGPT · Claude · ZCode · Copilot · any AI assistant