Add --url flag to ccc-client and ccc-queue
Overrides CONDUIT_URL env var. Resolved through load_client_config and threaded into create_conduit_client as base_url parameter. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
17
README.md
17
README.md
@@ -59,24 +59,26 @@ The full `secrets.json` stays on the host. `agent-secrets.json` goes into the co
|
||||
ccc-server --secrets secrets.json
|
||||
```
|
||||
|
||||
Environment variables:
|
||||
Server environment variables:
|
||||
| Variable | Default | Description |
|
||||
|----------|---------|-------------|
|
||||
| `CONDUIT_PORT` | `3015` | Port to listen on |
|
||||
| `CONDUIT_BIND` | `127.0.0.1` | Address to bind to |
|
||||
| `CONDUIT_ROOT` | `/workspace` | Workspace root for path resolution |
|
||||
|
||||
### Client (container / agent)
|
||||
|
||||
```bash
|
||||
ccc-client --secrets agent-secrets.json --user agent '{"action": "list-actions"}'
|
||||
ccc-client --secrets agent-secrets.json --user agent --url http://192.168.2.99:3015 '{"action": "list-actions"}'
|
||||
ccc-client --secrets agent-secrets.json --user agent '{"action": "edit-file", "filename": "/workspace/foo.mjs"}'
|
||||
```
|
||||
|
||||
`--secrets` and `--user` can also be set via environment variables:
|
||||
`--secrets`, `--user`, and `--url` can also be set via environment variables:
|
||||
|
||||
```bash
|
||||
export CCC_SECRETS=/path/to/agent-secrets.json
|
||||
export CCC_USER=agent
|
||||
export CONDUIT_URL=http://192.168.2.99:3015
|
||||
ccc-client '{"action": "list-actions"}'
|
||||
```
|
||||
|
||||
@@ -89,7 +91,7 @@ ccc-client '{"action": "edit-file",' '"filename": "/workspace/foo.mjs"}'
|
||||
### Queue manager (host)
|
||||
|
||||
```bash
|
||||
ccc-queue --secrets secrets.json --user user
|
||||
ccc-queue --secrets secrets.json --user user --url http://192.168.2.99:3015
|
||||
```
|
||||
|
||||
Opens an interactive TUI showing pending actions:
|
||||
@@ -108,7 +110,12 @@ Opens an interactive TUI showing pending actions:
|
||||
[y] approve [n] deny [r] refresh [q] quit
|
||||
```
|
||||
|
||||
Supports `CCC_SECRETS` and `CCC_USER` env vars the same as the client.
|
||||
Client environment variables:
|
||||
| Variable | Default | Description |
|
||||
|----------|---------|-------------|
|
||||
| `CCC_SECRETS` | — | Path to secrets file |
|
||||
| `CCC_USER` | — | Username to authenticate as |
|
||||
| `CONDUIT_URL` | `http://localhost:3015` | Server URL |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user