anfra docsAlpha
Set up local developmentSet up your coding agent

Other agents

Set up GitHub Copilot, Amp, Gemini CLI and other coding agents to build with anfra, and connect them to anfra's MCP server

Any coding agent that can run shell commands can build with anfra. This page covers the agents without a page of their own: GitHub Copilot, Junie, Amp, OpenCode, Gemini CLI, Antigravity, Windsurf, Cline, Warp and the rest. For Claude Code, Codex and Cursor, see their pages.

anfra agent setup doesn't install for these agents

anfra agent setup installs only for Claude Code and Codex. For every other agent, it prints a link to the install steps and installs nothing, so it can succeed without installing any skills. Follow the steps below instead.

Set up

Step 1: Install the CLI

The skills drive the anfra binary, so install it first, where your agent runs its commands:

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

Open a new terminal afterwards so anfra is on your PATH. On Windows, install it inside WSL2, and run your agent there too. See Install the CLI for Windows and the installer options.

Step 2: Install the plugin or the skills

Install the anfra plugin if your agent takes it: besides the skills, it brings hooks that validate AML files as the agent edits them and tell the agent when a newer anfra release is out. Otherwise, install the skills alone.

GitHub Copilot takes the plugin. In Copilot CLI:

copilot plugin marketplace add holistics/anfra-skills
copilot plugin install anfra@anfra-skills

In VS Code, turn on the chat.plugins.enabled setting (agent plugins are in preview), run Chat: Install Plugin From Source and enter https://github.com/holistics/anfra-skills.

Junie takes the plugin as an extension. In a Junie CLI session:

/extensions marketplace add holistics/anfra-skills
/extensions install anfra

Any other agent, such as Amp, OpenCode, Gemini CLI, Antigravity, Windsurf, Cline or Warp, takes the skills alone. Install them with npx skills, naming the agent by its id. For Amp:

npx skills add holistics/anfra-skills -a amp -g -y

For another agent, replace amp with its id:

AgentId
Ampamp
OpenCodeopencode
Gemini CLIgemini-cli
Antigravityantigravity
Windsurfwindsurf
Clinecline
Warpwarp

-g installs the skills for your user, so they work in every project. Leave it out to install them in the current project only. Copilot and Junie can also take the skills alone this way, with -a github-copilot or -a junie. To update skills installed with npx skills, run npx skills update.

If your agent isn't in the npx skills list but takes plugins in Claude Code's format, add https://github.com/holistics/anfra-skills as a marketplace in it and install anfra.

The plugin's aql-writer agent is for Claude Code only.

In an anfra project, also run anfra agent setup --agent <id> once: it writes an anfra block into the project's AGENTS.md, which tells the agent to use the skills there. It writes the block even though it reports an error for not installing the skills. anfra init writes the same block.

Step 3: Check the installation

anfra agent setup check

It changes nothing. It reports each agent it finds, with the plugin or the copies of the skills it loads, their version, and whether they are behind the latest release. If the skills are missing, restart the agent.

anfra agent setup check doesn't detect Amp. Run amp skill list instead, and look for skills starting with anfra-, such as anfra-setup-repo.

Use the skills

Most agents pick the right skill for a request on their own. To be sure, name the skill in your prompt.

Example prompt

Use the anfra-build-data-app skill. Build a revenue overview with a monthly trend and revenue by region. Clicking a region should filter the trend.

To start a new project, open an empty folder in your agent and ask it to use the anfra-setup-repo skill.

Connect to the MCP server

The skills work with the project on disk, through the anfra CLI. Add the MCP server when you want the agent to query data it can't reach that way, such as your organization's published project on anfra BI Cloud. Run it yourself, or connect to anfra BI Cloud, which hosts it for your organization. To compare, see Where your MCP server runs.

Each agent configures MCP servers its own way, so follow its docs for adding a remote server. You need:

anfra BI CloudYour machine or server
Addresshttps://us.anfra.ai/mcphttp://127.0.0.1:7878/mcp, or the address anfra serve prints
TransportStreamable HTTPStreamable HTTP
Sign-inOAuth, in your browserNone

For anfra BI Cloud, the agent must support OAuth for remote MCP servers. When you approve the connection, you pick one organization, and the agent acts as you there, with your role. If sign-in fails with a callback error, your admin may have limited where clients can return after sign-in. Ask them to allow your agent's callback address, such as http://localhost:*/*, under Settings → Organization → MCP → Allowed callbacks. See MCP access.

For a self-hosted anfra Core, the agent must be able to send a custom header, such as Authorization: Basic <value>. See Coding agents with MCP.

Once connected, ask a question about your data.

Example prompt

Using the anfra MCP server, list the datasets I can query, then show last month's revenue by region.

See Tools for what the server offers.

On this page