mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-09 03:41:17 +02:00
Co-authored-by: maria-rcks <maria@kuuro.net> Co-authored-by: Bilal Bakr <62337003+Bil0000@users.noreply.github.com> Co-authored-by: shivam <91240327+shivamhwp@users.noreply.github.com> Co-authored-by: Vitalii Yehorov <vitalyiegorov@gmail.com> Co-authored-by: Jake Leventhal <jakeleventhal@me.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Alex Southwell <saphid@gmail.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Nicholas Wasmiller <derped@mineperial.com> Co-authored-by: PB <poilmb@gmail.com> Co-authored-by: Exotic <118054752+extoci@users.noreply.github.com> Co-authored-by: Yash Singh <saiansh2525@gmail.com> Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Theo Browne <me@t3.gg> Co-authored-by: Gabriel De Andrade <30420087+gabrielelpidio@users.noreply.github.com> Co-authored-by: Dara Adedeji <76637177+SunkenInTime@users.noreply.github.com> Co-authored-by: scratchyone <scratchywon@gmail.com> Co-authored-by: Dominic Roy <dominic@sdko.org> Co-authored-by: chukfinley <chuk@chuk.dev> Co-authored-by: Primož Ajdišek <bigpod@bigpod.si> Co-authored-by: benthecarman <benthecarman@live.com> Co-authored-by: NaveDanan <nave0712@gmail.com> Co-authored-by: aaditagrawal <103925638+aaditagrawal@users.noreply.github.com> Co-authored-by: Aditya Garud <153842990+yashranaway@users.noreply.github.com> Co-authored-by: Nick Anisimov <n.anisimov.23@gmail.com> Co-authored-by: MacKinley Smith <smithmackinley@gmail.com> Co-authored-by: Yordis Prieto <yordis.prieto@gmail.com> Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com> Co-authored-by: AKolenda <akole779@mtroyal.ca> Co-authored-by: Guillermo Casanova <75276669+Gigioxx@users.noreply.github.com> Co-authored-by: Otavio Salvador <otavio@ossystems.com.br> Co-authored-by: Shirish Pothi <183252392+shirishpothi@users.noreply.github.com> Co-authored-by: Ishaan Kothari <ishaanko.mail@gmail.com> Co-authored-by: Bob Fowler <bob@rjf.ca> Co-authored-by: Anton Bezdenezhnykh <gamer392@yandex.ru> Co-authored-by: ValeraZSD <48602572+ValeraZSD@users.noreply.github.com> Co-authored-by: Ephraim <ephraim39hr14m@gmail.com> Co-authored-by: Ryan Ilano <ryanilano@users.noreply.github.com> Co-authored-by: Alex <me@pixp.cc> Co-authored-by: maco <gosarmarcel7@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Tristan Knight <admin@snappeh.com> Co-authored-by: PR Batch Tester <agent@local.test> Co-authored-by: oliver <97427849+flamboh@users.noreply.github.com> Co-authored-by: kamkm <99585688+Kamkmgamer@users.noreply.github.com> Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
66 lines
3.1 KiB
Markdown
66 lines
3.1 KiB
Markdown
# OpenCode
|
|
|
|
Install and authenticate OpenCode on the machine running your environment, then
|
|
enable it in **Settings > Providers**. See [provider setup](./install.md#providers).
|
|
T3 Code requires OpenCode 1.14.19 or newer, including when you connect an existing
|
|
OpenCode server.
|
|
|
|
## OpenCode 2
|
|
|
|
T3 Code supports OpenCode 2.0.18 and newer. It detects the version on its own, so
|
|
the same provider settings work for OpenCode 1.x and 2.x. OpenCode 1.x shows
|
|
**Limited support** in its provider settings.
|
|
|
|
OpenCode 2 is a separate package, `@opencode/cli`. To move from 1.x, install it
|
|
yourself, for example `npm install -g @opencode/cli`. Then refresh provider status.
|
|
T3 Code's update button updates whichever package you have installed. It never
|
|
switches a 1.x install to 2.x.
|
|
|
|
OpenCode 2 converts the shared OpenCode database to its own format the first time it
|
|
runs. Don't run OpenCode 1.x and 2.x side by side on the same machine. Threads you
|
|
started on 1.x continue on 2.x.
|
|
|
|
Plan mode uses OpenCode's `plan` agent.
|
|
|
|
## Local or external server
|
|
|
|
Leave **Server URL** empty to let T3 Code start OpenCode locally. A password in
|
|
provider settings applies to both that server and T3 Code's connection. With no
|
|
password setting, the local server uses `OPENCODE_SERVER_PASSWORD` from its
|
|
environment.
|
|
|
|
To use an existing OpenCode server, set **Server URL** and its password in provider
|
|
settings. T3 Code uses only that configured password for an external server; it
|
|
does not forward a local `OPENCODE_SERVER_PASSWORD`. If connection or version checks
|
|
fail, check the URL, credentials, and OpenCode version, then refresh provider status.
|
|
|
|
After a lost connection, send another prompt to reconnect to the same OpenCode
|
|
session.
|
|
|
|
## Approvals
|
|
|
|
OpenCode follows the shared [permission modes](./permission-modes.md). **Auto** has
|
|
the same rules as **Supervised** because OpenCode has no AI approval reviewer.
|
|
Environment files such as `.env` and `.env.local` need approval in restricted
|
|
modes even though normal file reads do not; `.env.example` is allowed.
|
|
|
|
**Allow for workspace** applies to matching requests in other OpenCode sessions
|
|
using the same workspace. It is broader than the current thread, especially on a
|
|
shared external server. Use **Allow once** for a single request. Denying an action
|
|
does not stop the whole turn.
|
|
|
|
## Refresh models, commands, and skills
|
|
|
|
After changing an OpenCode login or configuration, use **Refresh provider status**
|
|
in **Settings > Providers** for that environment. On mobile, use **Refresh models**
|
|
in the thread settings. Reconnecting also refreshes the catalog; periodic provider
|
|
health checks do not.
|
|
|
|
Credential changes are read on refresh. Native OpenCode configuration can remain
|
|
cached while the local helper is running. Let it sit for 30 seconds without model
|
|
refreshes or text-generation work, then refresh again to reload the files. Repeated
|
|
refreshes keep the helper alive. An external server may need its own reload or
|
|
restart before T3 Code can see configuration changes.
|
|
|
|
Existing threads keep their selected model and options even when it disappears
|
|
from the catalog. If OpenCode rejects that model, select an available one and retry.
|