Metadata-Version: 2.4
Name: scro
Version: 0.5.0
Summary: CLI and MCP server for scro, which gates what AI coding agents may do with the credentials they use.
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Description-Content-Type: text/markdown

# scro

scro gates what AI coding agents may do with the credentials they use.
Its proxy process holds the credentials and attaches one only to a request
that its allowlist and the gate process allow. The gate process classifies
each request into actions and answers allow, deny, or asks the person to
approve with a passkey.

This package is the `scro` CLI and MCP server for the agent machine. It
reaches the gate process only through the proxy process.

## Install

```sh
npm install -g @scro/cli     # or: uv tool install scro
scro setup skill             # the agent skill of this version, for the harnesses here
```

Or run it once with `npx @scro/cli` or `uvx scro`.

`scro setup skill` writes the skill to `~/.claude/skills/scro/` for Claude
Code, where `~/.claude` exists, and to `~/.agents/skills/scro/` for Codex,
opencode, Gemini CLI and pi, and prints each file it wrote. No other command
writes a skill.

`scro mint-request`, `scro run` and `scro doctor` need 0.2.0 or
later, and `scro setup skill` 0.5.0 or later; `scro --version` prints
yours.

To connect an agent machine, follow
https://scro.dsfaccini.com/docs/connect/agent-machine/.

Binaries ship for macOS 13 or later on arm64 and x64, and for Linux with
glibc 2.17 or later on x64 and arm64.

## Upgrade

Upgrade the CLI, then write the skill of the new version:

```sh
npm install -g @scro/cli@latest && scro setup skill
uv tool upgrade scro && scro setup skill
```

`scro doctor` says when a skill differs from the CLI's.

## Use

```sh
scro whoami                            # agent id, policy version, approval site
scro can pr.merge acme/web#12          # dry run: exit 0 allow, 2 ask, 3 deny
scro wait apr_x1y2z3                   # wait for the person's decision
scro propose edits.json --reason "…"   # nothing changes until the person signs
scro skill                             # the agent skill: what each scro message means
scro mcp                               # the same operations as MCP tools over stdio
```
