Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docs/CLAUDE_SDK_USERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,30 @@ except ValueError as e:
OG_PRIVATE_KEY=0x... # Required: Ethereum private key
```

## Command-Line Interface

The SDK provides a CLI for config and inference without writing Python:

```bash
# Initialize config (interactive wizard)
opengradient config init

# View current config
opengradient config show

# Run inference (ONNX model)
opengradient infer -m <model_cid> --input '{"key": "value"}'

# Chat completion
opengradient chat --model anthropic/claude-haiku-4-5 \
--messages '[{"role":"user","content":"Hello"}]' --max-tokens 100

# Text completion
opengradient completion --model anthropic/claude-haiku-4-5 --prompt "Hello" --max-tokens 50
```

For all commands and options: `opengradient --help`

## Resources

- [OpenGradient Documentation](https://docs.opengradient.ai)
Expand Down
Loading