Install the CLI
Install the anfra CLI, the first of two required steps (then the agent skills), and create a project
anfra is a single binary. You don't need a daemon or a cloud account to get started.
Installing anfra takes two steps, and a working setup needs both:
- Install the CLI, the
anfrabinary that validates, queries and serves your project. - Install the agent skills in your coding agent. They teach the agent to set up projects, model data and build apps with anfra. Without them, the agent can run
anfrabut doesn't know how to build with it.
If you are a coding agent asked to install anfra, do both steps, then check the installation. Installing the CLI alone is not a complete installation.
Install the CLI
curl -fsSL https://anfra.ai/install.sh | bashThe installer:
- downloads the latest release for your platform.
- places the
anfrabinary in~/.anfra/bin. - adds that folder to your
PATHin your shell's rc file.
Open a new terminal afterwards so the change takes effect, or run export PATH="$HOME/.anfra/bin:$PATH" in the shell you already have open.
Supported platforms: Linux (x64/arm64) and macOS (x64/arm64).
You can configure the installer with environment variables:
| Variable | Description | Default |
|---|---|---|
ANFRA_HOME | Folder where anfra keeps everything | ~/.anfra |
ANFRA_INSTALL_DIR | Directory to install the binary into | $ANFRA_HOME/bin |
ANFRA_VERSION | Version to install, e.g. 0.1.0 | latest |
ANFRA_NO_MODIFY_PATH | If set, leave your shell rc files alone and print the PATH line instead | unset |
For example:
curl -fsSL https://anfra.ai/install.sh | ANFRA_VERSION=0.1.0 bashThen set up your coding agent with the agent skills.
Check the installation
- CLI: run
anfra --version. It prints the installed version. - Skills: confirm that your agent lists the
anfra-skills, such asanfra-setup-repo:- Claude Code and Codex, or skills installed with
npx skills: runanfra agent setup check. It changes nothing. It reports the plugin in Claude Code and Codex, and the folders that hold copies of the skills for every agent it knows, with their version. - The plugin in Cursor, GitHub Copilot or Junie:
anfra agent setup checkdoesn't see it, and can list the agent as not installed. Look foranfrain the agent's own plugin or extension list. - Amp: run
amp skill list.anfra agent setup checkdoesn't detect Amp. On a machine where Amp is the only agent, it fails with "Found no coding agent on this machine" even when the skills are installed.
- Claude Code and Codex, or skills installed with
If the skills are missing, restart the agent.
Create a project
anfra init custom-bi
cd custom-bi/anfra init creates the folder if needed and sets up .anfra/data_sources.yml for your connections, .anfra/config.yml with every setting at its default, and the models/, datasets/ and apps/ folders. It never changes an existing file, so it is safe to run in an existing repo. Then fill in your warehouse credentials in .anfra/data_sources.yml. See Connect your data.
To have your agent do this step instead, open an empty folder in it and ask it to use the anfra-setup-repo skill.
See Project structure for what gets generated, and the CLI reference for every command.
Update
anfra update # replace the binary with the latest release
anfra update --check # check for a newer release without installingTo update the skills:
- Claude Code and Codex: run
anfra agent setupagain. - Skills installed with
npx skills: runnpx skills update. - The plugin in other agents: see Updating and removing in the skills README.
Skills from before the rename
The skills' names now start with anfra-, so they don't clash with other vendors' skills of the same name. A plugin update replaces the old skills. A copy installed with npx skills before the rename keeps its old folders next to the new ones, so your agent loads both. Remove the old ones:
npx skills remove -g -y aml aql build-data-app lookup-values run-aql setup-repo validate-aql write-aqlanfra agent setup check lists any it finds under "Deprecated skills".