Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-24 00:17:31 +00:00
parent 058ce19122
commit 20dd4df506
9 changed files with 164 additions and 14 deletions

View File

@@ -5,20 +5,32 @@ source: https://github.com/tldr-pages/tldr.git
---
# opencode
> AI coding agent.
> An AI coding agent.
> More information: <https://opencode.ai/docs/cli/>.
- Start the interactive terminal UI:
- Start the interactive TUI:
`opencode`
- Run opencode in non-interactive mode by passing a prompt directly:
`opencode run "{{message}}"`
- Use a specific model and agent:
`opencode run {{[-m|--model]}} {{provider}}/{{model}} --agent {{agent_name}} "{{message}}"`
- List all available models from configured providers:
`opencode models`
- Run opencode in a non-interactive mode by passing a prompt directly:
- Manage credentials and login for providers:
`opencode run {{message}}`
`opencode auth login`
- Start a headless opencode server for API access:
`opencode serve {{[-h|--hostname]}} {{hostname}} {{[-p|--port]}} {{port}}`
- Manage AI assistant agents for OpenCode: