Skip to main content

Project Structure

After running aui import-agent or aui agent --create, your project directory looks like this:

File Reference

VSCode and Cursor get automatic JSON schema autocomplete for .aui.json files via the .vscode/settings.json generated during import. Coding-agent skill folders (.cursor/, .claude/, .opencode/) are also generated so agents like Cursor and Claude Code understand how to build AUI agents. Skip them with --no-skills.

Session

Stored at ~/.aui/session.json after login. Contains:
  • Auth token (JWT) and refresh token
  • User info (ID, email, name)
  • Organization ID and name
  • Account ID and name
  • Agent ID and name
  • Environment and API URL
  • Token expiry timestamp
Do not commit ~/.aui/ to version control. It contains authentication tokens and API keys.

Project Config (.auirc)

Created in your project directory by aui import-agent or aui agent --create. It links your local project to a specific agent and version on the AUI platform:
.auirc
Commands like push, pull, apollo, version, and scenarios read their target from .auirc. If your session is scoped to a different organization than the project, run aui sync-session (the CLI also does this automatically before most commands).

Environment Variables

Environment variables override file-based configuration. Useful for CI/CD pipelines.

Secure Key Files

Additional credentials are stored as secure files (mode 600) in ~/.aui/: Mock DB runtime and management keys are stored per-agent when you run aui mockdb provision. Inspect their prefixes (never the secrets) with aui mockdb keys.

Environments

AUI supports the following environments: Switch environments:
The active environment is stored in ~/.aui/environment.

Next Steps

Command Reference

Full reference for all CLI commands.

Workflows

Common development workflows and patterns.