docs: edits
This commit is contained in:
parent
dfede9ae6e
commit
9f6fc1c3c5
5 changed files with 79 additions and 17 deletions
|
|
@ -10,7 +10,6 @@ You can configure opencode using a JSON config file.
|
|||
"$schema": "https://opencode.ai/config.json",
|
||||
"theme": "opencode",
|
||||
"model": "anthropic/claude-sonnet-4-20250514",
|
||||
"autoshare": false,
|
||||
"autoupdate": true
|
||||
}
|
||||
```
|
||||
|
|
@ -93,6 +92,24 @@ You can configure the theme you want to use in your opencode config through the
|
|||
|
||||
---
|
||||
|
||||
### Layout
|
||||
|
||||
You can configure the layout of the TUI with the `layout` option.
|
||||
|
||||
```json title="opencode.json"
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"layout": "stretch"
|
||||
}
|
||||
```
|
||||
|
||||
This takes:
|
||||
|
||||
- `"auto"`: Centers content with padding. This is the default.
|
||||
- `"stretch"`: Uses full terminal width.
|
||||
|
||||
---
|
||||
|
||||
### Logging
|
||||
|
||||
Logs are written to:
|
||||
|
|
@ -119,6 +136,26 @@ With the following options:
|
|||
| `ERROR` | Errors only |
|
||||
|
||||
The **default** log level is `INFO`. If you are running opencode locally in
|
||||
|
||||
---
|
||||
|
||||
### Sharing
|
||||
|
||||
You configure the [share](/docs/share) feature through the `share` option.
|
||||
|
||||
```json title="opencode.json"
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"share": "auto"
|
||||
}
|
||||
```
|
||||
|
||||
This takes:
|
||||
|
||||
- `"auto"` - Automatically share new conversations
|
||||
- `"disabled"` - Disable sharing entirely
|
||||
|
||||
By default, you'll need to manually share new conversations.
|
||||
development mode it's set to `DEBUG`.
|
||||
|
||||
---
|
||||
|
|
@ -138,6 +175,19 @@ You can customize your keybinds through the `keybinds` option.
|
|||
|
||||
---
|
||||
|
||||
### Autoupdate
|
||||
|
||||
opencode will automatically download any new updates when it starts up. You can disable this with the `autoupdate` option.
|
||||
|
||||
```json title="opencode.json"
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"autoupdate": false
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### MCP servers
|
||||
|
||||
You can configure MCP servers you want to use through the `mcp` option.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue