AGENTS.md setup that just works. Bootstrap every project with the open standard for AI coding agents. One command, zero headaches.
npm create codex
Adds local AGENTS.md file to your project. ZERO dependencies, ZERO overhead.
npm create codex # npm
pnpm create codex # pnpm
bun create codex # bun
yarn create codex # yarn
npm create codex --dry-run # Preview files
npm create codex --help # All options
npx create-codex # Direct execution
npx create-codex my-project # Create in specific directory
npm i create-codex
import { init } from 'create-codex';
await init('./my-project');
- Works everywhere: Codex, Cursor, Aider, Jules, Zed, Windsurf, Continue, and more
- Open standard: AGENTS.md is supported by 20k+ projects
- Zero lock-in: One file that works with any AI coding agent
- Runtime detection: Node.js, Python, Rust, Go, Java, C/C++, TypeScript, Bun
- Framework detection: React, Next.js, Vue, Angular, Svelte, Express, FastAPI
- Package manager detection: npm, yarn, pnpm, bun, pip, poetry, uv
- Git integration: Repository URL, branch information, user details
- Atomic operations: SHA256 verification and safe file writes
- Automatic backups: Timestamped backups of existing files
- Template rendering: Smart conditionals and variable substitution
- Setup commands: Install, dev, build, test commands for your stack
- Code standards: Language-specific best practices and conventions
- Development workflow: Optimized step-by-step process
- Safety boundaries: Security constraints and operational limits
- Project context: Path, Git info, and environment details
Is it safe to run?
Yes. It only creates an AGENTS.md file, never modifies your code. Each file operation uses SHA256 checksums and creates timestamped backups.
# If something goes wrong, backups are here:
ls .create-codex-backup-*
How do I remove it?
Delete the AGENTS.md file:
rm AGENTS.md
Your original code stays untouched.
What are the requirements?
- Node.js 20+
- Any AI coding agent that supports AGENTS.md
That's it. No global installs, no dependencies.
Does it work with my tools?
It auto-detects:
- Package managers: npm, yarn, pnpm, bun, pip, poetry, uv
- Languages: JavaScript, TypeScript, Python, Go, Rust, Java, C/C++
- Frameworks: React, Vue, Next.js, Express, FastAPI, etc.
Can't find your tool? It falls back to sensible defaults.
What files does it create?
Creates 1 file:
AGENTS.md # Project-specific instructions for AI agents
Future versions may support additional configuration in .codex/
directory.
This project follows security best practices:
- All dependencies are audited and kept up-to-date
- Code is scanned with CodeQL and other security tools
- OpenSSF Scorecard certified
- Signed releases with build provenance
Report security issues: SECURITY.md
Contributions welcome! Please read SECURITY.md first, then:
- Fork the repo
- Create a feature branch
- Run
npm run validate
before committing - Submit a pull request
Issues • Changelog • AGENTS.md Docs • Security
MIT © RMNCLDYO