Runs, wires, and troubleshoots Floci local cloud emulators for AWS, GCP, Azure, and OCI. Use for local cloud code/testing, Docker Compose setup, or multi-emulator instances.
Ships in floci. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Floci is a family of local cloud emulators that speak the real cloud wire protocols.
The floci command (floci-cli) manages their lifecycle; the native tools (aws, gcloud,
az, oci, SDKs, Terraform) do the resource work against the emulator. floci-cli never
creates cloud resources itself.
| Cloud | Emulator | CLI tree | Port | Default container | Reference |
|---|---|---|---|---|---|
| AWS | floci | floci aws | 4566 | floci | references/aws.md |
| GCP | floci-gcp | floci gcp | 4588 | floci-gcp | references/gcp.md |
| Azure | floci-az | floci az | 4577 | floci-az | references/azure.md |
| OCI | floci-oci | floci oci | 4599 | floci-oci | references/oci.md |
All paths in this skill (references/, scripts/, assets/) are relative to the directory
that holds this file, not to the user's working directory.
When to read what:
docker run, a
docker-compose.yml, or an app container that talks to the emulator.command -v floci && floci version # floci-cli present?
docker info >/dev/null && echo ok # Docker (or Podman via DOCKER_HOST) reachable?
If floci is missing, ask the user before installing software, then run:
scripts/install-floci.sh # brew if available, else official script into ~/.local/bin
scripts/install-floci.sh --version 0.4.0 # pin a version (uses the install script)
iwr https://floci.io/install.ps1 | iex (per-user, no admin). The helper scripts
here are bash; on Windows run the floci commands they wrap directly.floci.jar from the latest release and run
java -jar floci.jar (needs Java 25+).sudo or edit shell profiles (~/.bashrc, ~/.zshrc) without asking; if the
install dir is not on PATH, export it for the current session only.floci update --check exits 0 when up to date, 1 when an update exists and 2 when
the check itself failed. Run floci update only on exit 1 (Homebrew installs:
brew upgrade floci).floci-cli does not install Docker. If the daemon is missing, tell the user; do not install
Docker yourself. The native cloud CLIs (aws, gcloud, az, oci) are only needed for the
clouds the user works with; suggest installing them, do not install them unasked.
test/test for AWS, the dev identities floci az setup and floci oci setup create).
Never read, export or reuse the user's real cloud credentials or profiles.localhost, 127.0.0.1, localhost.floci.io, or a Compose service name). If a command
might reach public cloud (see each reference's "leaks" section), stop and fix the wiring.floci aws start, not floci start. Bare commands
follow floci config default-product, which the user may have changed.-o json, never scrape text output. Use -q to silence noise in scripts.--persist <dir> or a profile
with persistDir. Both start on a stopped container and restart remove the container
and create a new one: restart keeps the settings (port, image, services, persist dir,
namespace, bind address) but not in-memory state, and on Azure the new container has a new
certificate, so floci az setup must be run again. start on a running container fails;
on a stopped one it uses only its own flags and profile, so a bind address meant to last
belongs in the profile. Say so before recreating anything. If restart fails after removal,
follow stderr: a start command that retries with the same settings, or logs and wait
when the new container is up but not ready. Neither restores in-memory state.-q to env: it suppresses the exports themselves. Follow-up command hints
keep the instance's flags; keep them when retrying.floci <tree> services -o json and the
published docs (references/docs.md) instead of answering from memory.env. Until the container is running, env
warns on stderr. A profile with a port resolves to that port; a named container with
neither a port nor an endpoint has "endpoint": null in status -o json and env exits 1
rather than describe the default instance. Trust "state": "running" in status -o json,
not reachable.floci <tree> start --detach # pull if needed, start, return immediately
floci <tree> wait --timeout 2m # block until healthy (exit 0 = ready)
eval "$(floci <tree> env -o text)" # export SDK/CLI wiring into this shell
# ... run aws / gcloud / az / oci / tests ...
floci <tree> stop --remove # when done, only if you started it
-o text keeps the exports correct even when a profile sets output: json. In other shells:
floci <tree> env --shell fish | source, or
floci <tree> env --shell powershell | Invoke-Expression.
Or use the helper, which starts the container only when none exists, then waits and prints the exports:
exports="$(scripts/ensure-running.sh <aws|gcp|az|oci> [profile])" && eval "$exports"
Keep the two steps: eval "$(...)" in one go succeeds even when the helper fails, and the
commands after it would run with missing or stale wiring. The helper exits 3 without
touching anything when the container exists but is stopped, because starting it replaces
it (rule 6). Tell the user, and re-run with FLOCI_REPLACE_STOPPED=1 once they agree.
One-time per instance, before using the native CLI:
floci az setup (trusts the emulator cert, registers an az cloud, logs in).floci oci setup (writes a throwaway key and a [FLOCI] profile in ~/.oci/config).eval only affects the current shell. If each tool call runs in a fresh shell, prefix every
command: eval "$(floci aws env -o text)" && aws s3 ls.
The examples are written for bash. In zsh (the macOS default) an unquoted variable is not
split into words, so flags="--profile aws-b"; floci aws status $flags passes one argument
and fails. Write the flags out, or use an array: flags=(--profile aws-b) and
"${flags[@]}".
| Need | Command |
|---|---|
| Is it running and healthy? | floci <tree> status -o json |
| Which services are enabled? | floci <tree> services -o json (Azure: returns an empty list, see azure.md) |
| CLI and server versions | floci <tree> version -o json (Azure: read the version from status -o json) |
| Recent server logs | floci <tree> logs --tail 100 or --since 5m |
| Environment problems | floci <tree> doctor -o json (an array of checks with status ok, warn or fail; see troubleshooting.md before acting on a fix) |
| Effective config | floci <tree> config show --profile <name> (the namespace row appears only with a profile that yields one) |
| All instances | floci <tree> config profile list -o json (profiles are shared by all trees; image tells the cloud). Also config profile show, edit and delete <name> |
| Any command's flags | floci <tree> <command> --help |
An instance is a profile: its container name is its identity, its port must be unique, and
its Docker resource namespace keeps the containers it launches apart from other instances.
Pass the same --profile <name> to every command for that instance. Details and the
namespace derivation rules are in references/namespaces.md.
floci aws config profile create aws-b --container floci-b --port 14566 --persist ~/.floci/data/aws-b
floci aws start --profile aws-b # waits up to 30s; or --detach, then wait
eval "$(floci aws env -o text --profile aws-b)"
floci-cli keeps its own files under ~/.floci (profiles in ~/.floci/profiles/, per-instance
state in ~/.floci/<product>/<container>/), so instance data goes there too, as
~/.floci/data/<name>.
docker run or a Compose file, or the app itself runs in a container:
references/docker.md. Start from the templates in
assets/compose/ instead of writing YAML from memory.Coverage differs per service: some are full engines, some are in-process, some answer with
canned responses. Before writing code against a service, check that it is enabled
(floci <tree> services -o json) and read its page in the published docs
(references/docs.md). If an operation is missing, say so plainly,
suggest a workaround, and point the user to the emulator's issue tracker
(https://github.com/floci-io/<floci|floci-gcp|floci-az|floci-oci>/issues) instead of
retrying variations.
assets/compose/aws.yml (opens in a new tab)assets/compose/azure.yml (opens in a new tab)assets/compose/gcp.yml (opens in a new tab)assets/compose/multi-cloud.yml (opens in a new tab)assets/compose/oci.yml (opens in a new tab)references/aws.md (opens in a new tab)references/azure.md (opens in a new tab)references/ci.md (opens in a new tab)references/docker.md (opens in a new tab)references/docs.md (opens in a new tab)references/gcp.md (opens in a new tab)references/namespaces.md (opens in a new tab)references/oci.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)scripts/ensure-running.sh (opens in a new tab)scripts/install-floci.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/floci:flocifrom floci
npx claudepluginhub floci-io/floci-cli --plugin flociOther plugins' skills for the same job