aix init
Creates a new ai.json file in the current directory.
aix init [flags]| Flag | Description |
|---|---|
--force / -f | Overwrite existing ai.json if it exists. |
--from <editor> | Import supported config from an existing editor. |
--extends <ref> | Set the extends reference in the new ai.json. |
--lock | Create ai.lock.json beside the new config. |
--scope <scope> / --user / --project | Set the scope field (user or project). |
The --extends flag accepts any reference type: local paths, URLs, git repos, or npm packages.
# Initialize with an extends referenceaix init --extends github:company/ai-config
# Initialize with a lockfileaix init --lock
# Initialize a user-scoped configaix init --scope user
# Combine bothaix init --extends github:company/ai-config --scope userImporting Config
Section titled “Importing Config”The --from flag lets you bootstrap ai.json from:
cursorcopilotwindsurfclaude-codezedcodexgeminiopencode
When importing, aix will:
- Read the editor’s config files.
- Extract rules, prompts, and MCP settings.
- Write extracted content to
.aix/imported/. - Generate an
ai.jsonlinking to those files.
aix init --from is the right command when you want ai.json to become the source of
truth. If you want direct editor-to-editor migration, use aix sync.
See Import from an Editor for details.