# Install stack flagos

> Install stack flagos is an open-source agent skill for developer tools. Installs a five-package multi-chip AI software stack inside a running GPU container. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/flagos-ai/skills/tree/main/skills/install-stack-flagos
- **Repository:** https://github.com/flagos-ai/skills
- **GitHub stars:** 22
- **License:** Apache-2.0
- **Skill name:** install-stack-flagos
- **Collection:** https://github.com/flagos-ai/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill walks an agent through installing vLLM, FlagTree, FlagGems, FlagCX and vllm-plugin-FL into a GPU container that already has PyTorch and GPU access. It runs helper scripts that detect the GPU vendor, Python and glibc versions, free disk space and whether GitHub and PyPI need a mirror, then installs the packages in a fixed dependency order.

The workflow checks disk space before installing and selects a pre-compiled FlagTree wheel that matches the vendor, Python and glibc combination. FlagCX is built in two phases, first the C++ library and then the PyTorch plugin. Each package is validated by import, and a final JSON report lists per-package status. The skill stops early if vLLM or the plugin fails, while other failures are recorded and the run continues.

The agent needs a running Docker container with PyTorch and GPU access, the container name, and the GPU vendor. It uses Docker commands, Python and git, and some installs use Bash, file editing and web lookups.

## When your agent uses it

> Install the 5-package multi-chip software stack (vLLM, FlagTree, FlagGems, FlagCX, vllm-plugin-FL) inside a GPU container. Handles network mirror detection, dependency ordering, wheel selection, and per-package validation. Use after gpu-container-setup has produced a running container with PyTorch + GPU access.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/flagos-ai/skills/tree/HEAD/skills/install-stack-flagos)
- [Asks for: Bash(*), Read, Edit, Write, Glob, Grep, WebSearch, WebFetch…](https://github.com/flagos-ai/skills/blob/HEAD/skills/install-stack-flagos/SKILL.md)
- [No network calls found in its scripts](https://github.com/flagos-ai/skills/tree/HEAD/skills/install-stack-flagos)
- [Includes binary files](https://github.com/flagos-ai/skills/tree/HEAD/skills/install-stack-flagos)
- [License: Apache-2.0](https://github.com/flagos-ai/skills/tree/HEAD/skills/install-stack-flagos)

## Features

- **Network mirror detection:** Probes GitHub and PyPI reachability and returns mirror settings for later install commands.
- **Environment profiling:** Collects vendor, Python version, glibc, architecture and free disk space from the container.
- **Ordered package installs:** Installs vLLM, FlagTree, FlagGems, FlagCX and the vLLM plugin in dependency order.
- **FlagTree wheel selection:** Matches a pre-compiled FlagTree wheel to the vendor, Python and glibc versions.
- **Two-phase FlagCX build:** Compiles the FlagCX C++ library and then installs its PyTorch plugin.
- **Import validation report:** Import-tests all five packages and produces a structured status report with gate checks.

## Good for

- Set up vLLM and FlagGems inside a GPU container
- Find a matching FlagTree wheel for my Python and glibc versions
- Build and install the FlagCX PyTorch plugin on my accelerator
- Check which packages in the multi-chip stack installed correctly
- Configure a container to use GitHub or PyPI mirrors during installation

## Install

### Claude Code

This skill ships in the `flagos-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add flagos-ai/skills
/plugin install flagos-skills@flagos-skills
```

Or copy only this skill to `~/.claude/skills/install-stack-flagos`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/install-stack-flagos &&
cp -R "$tmp/skills/install-stack-flagos" ~/.claude/skills/install-stack-flagos &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/install-stack-flagos` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/install-stack-flagos` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/install-stack-flagos &&
cp -R "$tmp/skills/install-stack-flagos" ~/.agents/skills/install-stack-flagos &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/install-stack-flagos` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/install-stack-flagos` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/install-stack-flagos &&
cp -R "$tmp/skills/install-stack-flagos" ~/.cursor/skills/install-stack-flagos &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/install-stack-flagos` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/flagos-ai/skills.git --path skills/install-stack-flagos
```

Or copy the folder to `~/.gemini/skills/install-stack-flagos` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/install-stack-flagos`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/install-stack-flagos &&
cp -R "$tmp/skills/install-stack-flagos" ~/.copilot/skills/install-stack-flagos &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/install-stack-flagos` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/flagos-ai/skills.git
```

Then copy `skills/skills/install-stack-flagos` into your agent's skills folder as `install-stack-flagos`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What must be in place before using Install stack flagos?

A running Docker container with PyTorch and GPU access, typically produced by the gpu-container-setup skill. The container name and GPU vendor are needed.

### Which packages does Install stack flagos install?

vLLM 0.13.0, FlagTree, FlagGems, FlagCX and vllm-plugin-FL, in that order.

### What happens if a package fails?

A vLLM or vllm-plugin-FL failure stops the run. Failures in FlagTree, FlagGems or FlagCX are recorded and the remaining steps continue.

### Does Install stack flagos need any specific tools?

It uses Bash, Read, Edit, Write, Glob, Grep, WebSearch, WebFetch and AskUserQuestion, and the scripts are written in Python.

### How do I install Install stack flagos in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/install-stack-flagos to use it in all your projects, or to .claude/skills/install-stack-flagos in one project. Or install the flagos-skills plugin, which includes it: /plugin marketplace add flagos-ai/skills, then /plugin install flagos-skills@flagos-skills.

### Does Install stack flagos run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Install stack flagos?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Install stack flagos?

The closest alternatives to Install stack flagos are Vllm plugin fl setup flagos, GPU container setup flagos, Jetson package, Agent skill stack and Perf test flagos.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Vllm plugin fl setup flagos](https://ai-powered.com/skills/vllm-plugin-fl-setup-flagos): Vllm plugin fl setup flagos is an open-source agent skill for developer tools.
- [GPU container setup flagos](https://ai-powered.com/skills/gpu-container-setup-flagos): GPU container setup flagos is an open-source agent skill for developer tools.
- [Jetson package](https://ai-powered.com/skills/jetson-package): Jetson package is an open-source agent skill for developer tools.
- [Agent skill stack](https://ai-powered.com/skills/agent-skill-stack): Agent skill stack is an open-source agent skill for developer tools.
- [Perf test flagos](https://ai-powered.com/skills/perf-test-flagos): Perf test flagos is an open-source agent skill for developer tools.
- [Configuration](https://ai-powered.com/skills/configuration-spark-arena): Configuration is an open-source agent skill for developer tools.
- [Nvshmem install](https://ai-powered.com/skills/nvshmem-install): Nvshmem install is an open-source agent skill for developer tools.
- [Vss build vision AI](https://ai-powered.com/skills/vss-build-vision-ai): Vss build vision AI is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/install-stack-flagos
