mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
Doc models --refresh flag in cli.mdx
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
This commit is contained in:
parent
89a4f1c1ae
commit
41b36b62c4
1 changed files with 20 additions and 1 deletions
|
|
@ -161,13 +161,32 @@ opencode github run
|
|||
List all available models from configured providers.
|
||||
|
||||
```bash
|
||||
opencode models
|
||||
opencode models [provider]
|
||||
```
|
||||
|
||||
This command displays all models available across your configured providers in the format `provider/model`.
|
||||
|
||||
This is useful for figuring out the exact model name to use in [your config](/docs/config/).
|
||||
|
||||
You can optionally pass a provider ID to filter models by that provider.
|
||||
|
||||
```bash
|
||||
opencode models anthropic
|
||||
```
|
||||
|
||||
#### Flags
|
||||
|
||||
| Flag | Description |
|
||||
| ----------- | ------------------------------------------------------------ |
|
||||
| `--refresh` | Refresh the models cache from models.dev |
|
||||
| `--verbose` | Use more verbose model output (includes metadata like costs) |
|
||||
|
||||
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.
|
||||
|
||||
```bash
|
||||
opencode models --refresh
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### run
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue