Skip to content
Back to skills

Cli

CSecurity

How the Stream CLI (getstream) reaches the agents backend, and how to point it at a local router or the hosted one. Read before running getstream agents commands or debugging why one fails.

  • 8,227 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 28, 2026
ai-agentsrustgobashgcpdebuggingapibackend

Works with

  • terminal
  • cli
  • api

Security analysis

C71/100
  • criticalPipes output to a shell interpreter
  • mediumUses curl or wget to download content
  • criticalDownloads and executes remote scripts — classic supply chain attack

Pro shows the line behind each finding and how to fix it

Scanned November 28, 2026

npx -y skills add GetStream/Vision-Agents --skill cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cli
[![Security: C — Skills Directory](https://www.skillsdirectory.com/api/skills/getstream-cli/badge)](https://www.skillsdirectory.com/skills/getstream-cli)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cli
description: How the Stream CLI (getstream) reaches the agents backend, and how to point it at a local router or the hosted one. Read before running getstream agents commands or debugging why one fails.
---

# Stream CLI

The CLI is `getstream`, source in `workspace/cli` (GetStream/cli). Install or update it with:

```sh
curl -fsSL https://getstream.io/cli/beta/install.sh | bash
```

## Which router it talks to

`agents_base` in `~/.stream/config.yaml` decides where every `getstream agents` command goes:

```yaml
agents_base: http://localhost:8080 # the local router
# agents_base: https://appkey@accelerate-us-east4.gcp.stream-io-api.com # the hosted one
```

- A bare URL names the app by its id in trusted headers (`X-Customer-Id` and `X-Stream-App-Id`), which a local router with no auth reads. The customer id is the app id from the project's `.stream/creds.yaml`.
- `appkey@` before the host signs as the app with its key and secret, the way the hosted proxy wants it.
- Left out, it is the hosted router.

There is no flag or env var for it. To run one command elsewhere without editing your config, give it a home of its own:

```sh
mkdir -p /tmp/clihome && cp -R ~/.stream /tmp/clihome/.stream
echo 'agents_base: https://appkey@accelerate-staging.gcp.stream-io-api.com' > /tmp/clihome/.stream/config.yaml
HOME=/tmp/clihome getstream agents test my-agent
```

The hosted router is deployed less often than `main` moves, so test new router behaviour against the local one (rebuild it first, see `AGENTS.md`). The SDKs pick their router separately, from `STREAM_ACCELERATION_URL` and `STREAM_ACCELERATION_CUSTOMER_ID`; set the customer id to the app id to reach the same agents the CLI does locally.

## Projects

`getstream init` links the current directory to an app by writing `.stream/creds.yaml`. Without a terminal it writes `.stream/init-*.yaml` instead: uncomment one `app_id` and run `getstream init --command <file>`.

## Debugging

- A non-2xx answer prints only the status, even with `--verbose`. To read the error message, repeat the request with an SDK, which surfaces the router's `{"error": {"message"}}`.
- `STREAM_API_KEY` and `STREAM_API_SECRET` in the environment override the project's credentials.
- The CLI checks `agent.yaml` keys itself before syncing, against its own list, so a key the router already accepts can still be refused by an older CLI.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.