Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 34024c2

Browse files
docs: models --refresh flag in cli.mdx (anomalyco#5596)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
1 parent 27e826e commit 34024c2

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

  • packages/web/src/content/docs

packages/web/src/content/docs/cli.mdx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,32 @@ opencode github run
161161
List all available models from configured providers.
162162

163163
```bash
164-
opencode models
164+
opencode models [provider]
165165
```
166166

167167
This command displays all models available across your configured providers in the format `provider/model`.
168168

169169
This is useful for figuring out the exact model name to use in [your config](/docs/config/).
170170

171+
You can optionally pass a provider ID to filter models by that provider.
172+
173+
```bash
174+
opencode models anthropic
175+
```
176+
177+
#### Flags
178+
179+
| Flag | Description |
180+
| ----------- | ------------------------------------------------------------ |
181+
| `--refresh` | Refresh the models cache from models.dev |
182+
| `--verbose` | Use more verbose model output (includes metadata like costs) |
183+
184+
Use the `--refresh` flag to update the cached model list. This is useful when new models have been added to a provider and you want to see them in OpenCode.
185+
186+
```bash
187+
opencode models --refresh
188+
```
189+
171190
---
172191

173192
### run

0 commit comments

Comments
 (0)