mirror of
https://github.com/instructkr/claw-code.git
synced 2026-11-15 00:01:11 +08:00
Compare commits
3
Commits
release/v0.1.13
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
508b4d862d | ||
|
|
f51a33a896 | ||
|
|
6a29e08883 |
@@ -191,6 +191,51 @@ curl -sS "https://api.uberllm.dev/v1/models" \
|
||||
| jq -r '.data[] | "\(.id)\t\(.max_output_tokens)"'
|
||||
```
|
||||
|
||||
## Standard Compute
|
||||
|
||||
[Standard Compute](https://standardcompute.com) is an OpenAI-compatible gateway. Set `OPENAI_BASE_URL` to `https://api.stdcmpt.com/v1` and `OPENAI_API_KEY` to your Standard Compute key.
|
||||
|
||||
```bash
|
||||
export STANDARDCOMPUTE_API_KEY="your-standardcompute-api-key"
|
||||
export OPENAI_BASE_URL="https://api.stdcmpt.com/v1"
|
||||
export OPENAI_API_KEY="$STANDARDCOMPUTE_API_KEY"
|
||||
claw --model "local/StandardCompute" prompt "Reply exactly HELLO_WORLD_123"
|
||||
```
|
||||
|
||||
`StandardCompute` is the routed model: the router picks from the models enabled on your account using your quality preference, so harder tasks go to stronger models and simpler ones to cheaper models ([routing docs](https://docs.standardcompute.com/models#smart-routing)). It is a bare name on a remote gateway, so it needs the `local/` hatch, which selects the OpenAI-compatible transport and is removed before the request.
|
||||
|
||||
To pin one model, use a vendor-prefixed id from the catalog with the same hatch, for example `--model "local/deepseek/deepseek-v4-flash"`. A bare vendor prefix can pick a native route instead of the gateway.
|
||||
|
||||
The public model list does not need a key:
|
||||
|
||||
```bash
|
||||
curl -sS "https://api.stdcmpt.com/v1/models" | jq -r '.data[].id'
|
||||
```
|
||||
|
||||
See the [Standard Compute docs](https://docs.standardcompute.com) for keys and account setup.
|
||||
|
||||
## HopBase
|
||||
|
||||
[HopBase](https://hop-base.com) is an OpenAI-compatible API for Claude, GPT, GLM, DeepSeek, Qwen, and other model families. Set `OPENAI_BASE_URL` to `https://api.hop-base.com/v1` and `OPENAI_API_KEY` to your HopBase key.
|
||||
|
||||
```bash
|
||||
export HOPBASE_API_KEY="your-hopbase-api-key"
|
||||
export OPENAI_BASE_URL="https://api.hop-base.com/v1"
|
||||
export OPENAI_API_KEY="$HOPBASE_API_KEY"
|
||||
claw --model "local/glm-5.3-flash" prompt "Reply exactly HELLO_WORLD_123"
|
||||
```
|
||||
|
||||
HopBase ids are bare names without a vendor prefix (`glm-5.3-flash`, `gpt-5.6-luna`, `claude-sonnet-5-5`). Put `local/` in front of every one: the hatch selects the OpenAI-compatible transport and is removed, so the id goes out unchanged. Without it, a bare `claude-` id picks the native Anthropic route, and a bare `qwen-` or `kimi-` id goes to DashScope.
|
||||
|
||||
The model list needs your key and shows the ids that key can call:
|
||||
|
||||
```bash
|
||||
curl -sS "https://api.hop-base.com/v1/models" \
|
||||
-H "Authorization: Bearer $OPENAI_API_KEY" | jq -r '.data[].id'
|
||||
```
|
||||
|
||||
See the [HopBase docs](https://hop-base.com/en/docs) for keys and account setup.
|
||||
|
||||
## Local skills install from disk
|
||||
|
||||
Skills are discovered from Claw skill roots such as `.claw/skills/` in a workspace and `~/.claw/skills/` for user-level installs. Legacy `.codex/skills/` roots may also be scanned for compatibility, but new local Claw projects should prefer `.claw/skills/`.
|
||||
|
||||
Reference in new issue
Block a user