anfra docsAlpha
Set up local development

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:

  1. Install the CLI, the anfra binary that validates, queries and serves your project.
  2. 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 anfra but 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 | bash

The installer:

  • downloads the latest release for your platform.
  • places the anfra binary in ~/.anfra/bin.
  • adds that folder to your PATH in 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:

VariableDescriptionDefault
ANFRA_HOMEFolder where anfra keeps everything~/.anfra
ANFRA_INSTALL_DIRDirectory to install the binary into$ANFRA_HOME/bin
ANFRA_VERSIONVersion to install, e.g. 0.1.0latest
ANFRA_NO_MODIFY_PATHIf set, leave your shell rc files alone and print the PATH line insteadunset

For example:

curl -fsSL https://anfra.ai/install.sh | ANFRA_VERSION=0.1.0 bash

Then set up your coding agent with the agent skills.

Check the installation

  1. CLI: run anfra --version. It prints the installed version.
  2. Skills: confirm that your agent lists the anfra- skills, such as anfra-setup-repo:
    • Claude Code and Codex, or skills installed with npx skills: run anfra 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 check doesn't see it, and can list the agent as not installed. Look for anfra in the agent's own plugin or extension list.
    • Amp: run amp skill list. anfra agent setup check doesn'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.

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 installing

To update the skills:

  • Claude Code and Codex: run anfra agent setup again.
  • Skills installed with npx skills: run npx 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-aql

anfra agent setup check lists any it finds under "Deprecated skills".

Next steps

On this page