ainit.dev generates AI configuration files for your project from the command line. One command to set up ignore files and guardrails for any AI coding tool.
Quick start
Initialize your project with both an ignore file and guardrails in one command.
Linux / macOS
curl -sL "ainit.dev/api/init?t=react,node?g=react,node?o=cursor" | sh
Windows (PowerShell)
iex (iwr "ainit.dev/api/init?t=react,node?g=react,node?o=cursor?s=ps").Content
This creates .cursorignore + .cursorrules with React and Node.js templates and guardrails.
Init API
/api/init generates a shell script that creates both ignore and rules files.
| Param | Description | Values |
|---|---|---|
t= |
.aiignore templates | Comma-separated (e.g. react,node,docker) |
g= |
Guardrails technologies | Comma-separated (e.g. react,python) |
c= |
Category filter (optional) | code-style, security, testing, error-handling, architecture, dependencies, ai-behavior, git-workflow |
o= |
Output tool format | agents (default), cursor, claude, windsurf, copilot, gemini |
s= |
Shell type | sh (default) or ps (PowerShell) |
Examples
Linux / macOS
curl -sL "ainit.dev/api/init?t=react,node?g=react,node" | sh
Creates .aiignore + AGENTS.md
curl -sL "ainit.dev/api/init?t=react,node?g=react?o=cursor" | sh
Creates .cursorignore + .cursorrules
curl -sL "ainit.dev/api/init?g=python,django?c=security,testing?o=claude" | sh
Guardrails only, filtered to security + testing categories
Windows (PowerShell)
iex (iwr "ainit.dev/api/init?t=react,node?g=react,node?s=ps").Content
Creates .aiignore + AGENTS.md
iex (iwr "ainit.dev/api/init?t=react,node?g=react?o=cursor?s=ps").Content
Creates .cursorignore + .cursorrules
Windows requires s=ps to generate a PowerShell script instead of a shell script. Use iwr (Invoke-WebRequest) instead of curl when piping to iex (Invoke-Expression).
Output formats
The o= parameter controls which filenames are generated:
| o= | Tool | Ignore file | Rules file |
|---|---|---|---|
agents |
Cross-tool (default) | .aiignore | AGENTS.md |
cursor |
Cursor | .cursorignore | .cursorrules |
claude |
Claude Code | .claudeignore | CLAUDE.md |
windsurf |
Windsurf | .codeiumignore | .windsurfrules |
copilot |
GitHub Copilot | .aiexclude | copilot-instructions.md |
gemini |
Gemini Code Assist | .geminiignore | GEMINI.md |
.aiignore API
/api/{templates} returns a combined ignore file. Works with curl -L on all platforms.
curl -L ainit.dev/api/react,node,typescript
All templates combined into .aiignore
curl -L "ainit.dev/api/react,node?o=cursorignore"
Output as .cursorignore format
curl -L ainit.dev/api/python,django,docker
Python + Django + Docker
Browse templates interactively on the .aiignore generator.
Guardrails API
/api/guardrails/{technologies} returns combined guardrails. Works with curl -L on all platforms.
curl -L ainit.dev/api/guardrails/react,python
All categories for React + Python
curl -L "ainit.dev/api/guardrails/react,node?c=security,testing"
Only security + testing categories
curl -L "ainit.dev/api/guardrails/react?o=cursor"
Output as .cursorrules format
Browse technologies interactively on the guardrails generator.