fix(docs): locale markdown issues
This commit is contained in:
@@ -33,6 +33,7 @@ opencode [project]
|
||||
| ------------ | ------- | -------------------------------------------- |
|
||||
| `--continue` | `-c` | متابعة الجلسة الأخيرة |
|
||||
| `--session` | `-s` | معرّف الجلسة للمتابعة |
|
||||
| `--fork` | | تفريع الجلسة عند المتابعة (يستخدم مع `--continue` أو `--session`) |
|
||||
| `--prompt` | | الموجّه المراد استخدامه |
|
||||
| `--model` | `-m` | النموذج المراد استخدامه بصيغة provider/model |
|
||||
| `--agent` | | الوكيل المراد استخدامه |
|
||||
@@ -339,6 +340,7 @@ opencode run --attach http://localhost:4096 "Explain async/await in JavaScript"
|
||||
| `--command` | | الأمر المراد تشغيله؛ استخدم الرسالة كوسائط |
|
||||
| `--continue` | `-c` | متابعة الجلسة الأخيرة |
|
||||
| `--session` | `-s` | معرّف الجلسة للمتابعة |
|
||||
| `--fork` | | تفريع الجلسة عند المتابعة (يستخدم مع `--continue` أو `--session`) |
|
||||
| `--share` | | مشاركة الجلسة |
|
||||
| `--model` | `-m` | النموذج المراد استخدامه بصيغة provider/model |
|
||||
| `--agent` | | الوكيل المراد استخدامه |
|
||||
|
||||
@@ -20,7 +20,7 @@ Postoje dvije vrste agenata u OpenCode-u; primarni agensi i subagensi.
|
||||
### Primarni agenti
|
||||
|
||||
Primarni agenti su glavni pomoćnici s kojima direktno komunicirate. Možete se kretati kroz njih pomoću tipke **Tab** ili vašeg konfigurisanog povezivanja tipki `switch_agent`. Ovi agenti vode vaš glavni razgovor. Pristup alatima se konfiguriše putem dozvola — na primjer, Build ima omogućene sve alate dok je Plan ograničen.
|
||||
::: tip
|
||||
:::tip
|
||||
Možete koristiti tipku **Tab** za prebacivanje između primarnih agenata tokom sesije.
|
||||
:::
|
||||
OpenCode dolazi sa dva ugrađena primarna agenta, **Build** i **Plan**. Hoćemo
|
||||
@@ -174,14 +174,14 @@ Također možete definirati agente koristeći mardown datoteke. Stavite ih u:
|
||||
|
||||
```markdown title="~/.config/opencode/agents/review.md"
|
||||
---
|
||||
opis: Recenzira kod za kvalitet i najbolje prakse
|
||||
način rada: subagent
|
||||
description: Reviews code for quality and best practices
|
||||
mode: subagent
|
||||
model: anthropic/claude-sonnet-4-20250514
|
||||
temperatura: 0.1
|
||||
alati:
|
||||
napisati: netačno
|
||||
temperature: 0.1
|
||||
tools:
|
||||
write: false
|
||||
edit: false
|
||||
bash: lažno
|
||||
bash: false
|
||||
---
|
||||
|
||||
Nalazite se u načinu pregleda koda. Fokusirajte se na:
|
||||
@@ -283,7 +283,7 @@ Ako ovo nije postavljeno, agent će nastaviti iterirati sve dok model ne odluči
|
||||
```
|
||||
|
||||
Kada se dostigne ograničenje, agent prima poseban sistemski prompt koji ga upućuje da odgovori sa rezimeom svog rada i preporučenim preostalim zadacima.
|
||||
:::oprez
|
||||
:::caution
|
||||
Naslijeđeno polje `maxSteps` je zastarjelo. Umjesto toga koristite `steps`.
|
||||
:::
|
||||
|
||||
@@ -366,7 +366,7 @@ Kontrolirajte koji su alati dostupni u ovom agentu koristeći konfiguraciju `too
|
||||
}
|
||||
```
|
||||
|
||||
:::napomena
|
||||
:::note
|
||||
Konfiguracija specifična za agenta poništava globalnu konfiguraciju.
|
||||
:::
|
||||
Također možete koristiti zamjenske znakove za kontrolu više alata odjednom. Na primjer, da onemogućite sve alate sa MCP servera:
|
||||
@@ -375,11 +375,12 @@ Također možete koristiti zamjenske znakove za kontrolu više alata odjednom. N
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"agent": {
|
||||
"samo za čitanje": {
|
||||
"alati": {
|
||||
"mymcp_*": lažno,
|
||||
"pisati": lažno,
|
||||
"uredi": netačno }
|
||||
"plan": {
|
||||
"tools": {
|
||||
"mymcp_*": false,
|
||||
"write": false,
|
||||
"edit": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -411,13 +412,13 @@ Možete nadjačati ove dozvole po agentu.
|
||||
```json title="opencode.json" {3-5,8-10}
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"dozvola": {
|
||||
"edit": "odbiti"
|
||||
"permission": {
|
||||
"edit": "deny"
|
||||
},
|
||||
"agent": {
|
||||
"build": {
|
||||
"dozvola": {
|
||||
"uredi": "pitaj"
|
||||
"permission": {
|
||||
"edit": "ask"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -450,10 +451,10 @@ Možete postaviti dozvole za određene bash komande.
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"agent": {
|
||||
"build": {
|
||||
"dozvola": {
|
||||
"permission": {
|
||||
"bash": {
|
||||
"git push": "pitaj",
|
||||
"grep *": "dozvoli"
|
||||
"git push": "ask",
|
||||
"grep *": "allow"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -486,10 +487,10 @@ Budući da posljednje podudarno pravilo ima prednost, prvo postavite zamjenski z
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"agent": {
|
||||
"build": {
|
||||
"dozvola": {
|
||||
"permission": {
|
||||
"bash": {
|
||||
"*": "pitaj",
|
||||
"git status *": "dozvoli"
|
||||
"*": "ask",
|
||||
"git status *": "allow"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -526,15 +527,16 @@ Sakrij podagenta iz `@` menija za automatsko dovršavanje sa `hidden: true`. Kor
|
||||
```json title="opencode.json"
|
||||
{
|
||||
"agent": {
|
||||
"interni-pomoćnik": {
|
||||
"internal-helper": {
|
||||
"mode": "subagent",
|
||||
"skriveno": istina }
|
||||
"hidden": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Ovo utiče samo na vidljivost korisnika u meniju za automatsko dovršavanje. Model i dalje može pozvati skrivene agente putem alata Zadatak ako dozvole dozvoljavaju.
|
||||
:::napomena
|
||||
:::note
|
||||
Odnosi se samo na `mode: subagent` agente.
|
||||
:::
|
||||
|
||||
@@ -667,7 +669,7 @@ Evo nekoliko uobičajenih slučajeva upotrebe različitih agenata.
|
||||
## Primjeri
|
||||
|
||||
Evo nekoliko primjera agenata koji bi vam mogli biti korisni.
|
||||
::: momak
|
||||
:::tip
|
||||
Imate li agenta kojeg biste željeli podijeliti? [Pošalji PR](https://github.com/anomalyco/opencode).
|
||||
:::
|
||||
|
||||
@@ -677,10 +679,10 @@ Imate li agenta kojeg biste željeli podijeliti? [Pošalji PR](https://github.co
|
||||
|
||||
```markdown title="~/.config/opencode/agents/docs-writer.md"
|
||||
---
|
||||
opis: Piše i vodi projektnu dokumentaciju
|
||||
način rada: subagent
|
||||
alati:
|
||||
bash: lažno
|
||||
description: Writes and maintains project documentation
|
||||
mode: subagent
|
||||
tools:
|
||||
bash: false
|
||||
---
|
||||
|
||||
Vi ste tehnički pisac. Kreirajte jasnu, sveobuhvatnu dokumentaciju.
|
||||
|
||||
@@ -31,7 +31,8 @@ opencode [project]
|
||||
|
||||
#### Zastave
|
||||
|
||||
| Zastava | Kratko | Opis || ------------ | ----- | ------------------------------------------ |
|
||||
| Zastava | Kratko | Opis
|
||||
|------------ | ----- | ------------------------------------------ |
|
||||
| `--continue` | `-c` | Nastavite posljednju sesiju |
|
||||
| `--session` | `-s` | ID sesije za nastavak |
|
||||
| `--prompt` | | Uputstvo za upotrebu |
|
||||
@@ -79,7 +80,8 @@ opencode attach http://10.20.30.40:4096
|
||||
|
||||
#### Zastave
|
||||
|
||||
| Zastava | Kratko | Opis || ----------- | ----- | --------------------------------- |
|
||||
| Zastava | Kratko | Opis
|
||||
|----------- | ----- | --------------------------------- |
|
||||
| `--dir` | | Radni direktorij za pokretanje TUI u |
|
||||
| `--session` | `-s` | ID sesije za nastavak |
|
||||
|
||||
@@ -192,7 +194,8 @@ opencode github run
|
||||
|
||||
##### Zastave
|
||||
|
||||
| Zastava | Opis || --------- | -------------------------------------- |
|
||||
| Zastava | Opis
|
||||
|--------- | -------------------------------------- |
|
||||
| `--event` | GitHub lažni događaj za pokretanje agenta za |
|
||||
| `--token` | GitHub token ličnog pristupa |
|
||||
|
||||
@@ -303,7 +306,8 @@ opencode models anthropic
|
||||
|
||||
#### Zastave
|
||||
|
||||
| Zastava | Opis || ----------- | ------------------------------------------------------------ |
|
||||
| Zastava | Opis
|
||||
|----------- | ------------------------------------------------------------ |
|
||||
| `--refresh` | Osvježite predmemoriju modela sa models.dev |
|
||||
| `--verbose` | Koristite detaljniji izlaz modela (uključuje metapodatke poput troškova) |
|
||||
Koristite `--refresh` zastavicu da ažurirate keširanu listu modela. Ovo je korisno kada su novi modeli dodani provajderu i želite da ih vidite u OpenCode-u.
|
||||
@@ -341,7 +345,8 @@ opencode run --attach http://localhost:4096 "Objasni async/await u JavaScriptu"
|
||||
|
||||
#### Zastave
|
||||
|
||||
| Zastava | Kratko | Opis || ------------ | ----- | ------------------------------------------------------------------ |
|
||||
| Zastava | Kratko | Opis
|
||||
|------------ | ----- | ------------------------------------------------------------------ |
|
||||
| `--command` | | Naredba za pokretanje, koristite poruku za args |
|
||||
| `--continue` | `-c` | Nastavite posljednju sesiju |
|
||||
| `--session` | `-s` | ID sesije za nastavak |
|
||||
@@ -368,7 +373,8 @@ Ovo pokreće HTTP server koji pruža API pristup funkcionalnosti otvorenog koda
|
||||
|
||||
#### Zastave
|
||||
|
||||
| Zastava | Opis || ------------ | ------------------------------------------ |
|
||||
| Zastava | Opis
|
||||
|------------ | ------------------------------------------ |
|
||||
| `--port` | Port za slušanje na |
|
||||
| `--hostname` | Ime hosta za slušanje |
|
||||
| `--mdns` | Omogući mDNS otkrivanje |
|
||||
@@ -397,7 +403,8 @@ opencode session list
|
||||
|
||||
##### Zastave
|
||||
|
||||
| Zastava | Kratko | Opis || ------------- | ----- | ------------------------------------ |
|
||||
| Zastava | Kratko | Opis
|
||||
|------------- | ----- | ------------------------------------ |
|
||||
| `--max-count` | `-n` | Ograničenje na N najnovijih sesija |
|
||||
| `--format` | | Izlazni format: tablica ili json (tabela) |
|
||||
|
||||
@@ -414,7 +421,8 @@ opencode stats
|
||||
|
||||
#### Zastave
|
||||
|
||||
| Zastava | Opis || ----------- | ------------------------------------------------------------------------------------- |
|
||||
| Zastava | Opis
|
||||
|----------- | ------------------------------------------------------------------------------------- |
|
||||
| `--days` | Prikaži statistiku za zadnjih N dana (sva vremena) |
|
||||
| `--tools` | Broj alata za prikaz (svi) |
|
||||
| `--models` | Prikaži raščlambu korištenja modela (skriveno prema zadanim postavkama). Proslijedite broj za prikaz vrha N |
|
||||
@@ -465,7 +473,8 @@ Ovo pokreće HTTP server i otvara web pretraživač za pristup OpenCodeu preko w
|
||||
|
||||
#### Zastave
|
||||
|
||||
| Zastava | Opis || ------------ | ------------------------------------------ |
|
||||
| Zastava | Opis
|
||||
|------------ | ------------------------------------------ |
|
||||
| `--port` | Port za slušanje na |
|
||||
| `--hostname` | Ime hosta za slušanje |
|
||||
| `--mdns` | Omogući mDNS otkrivanje |
|
||||
@@ -485,7 +494,8 @@ Ova komanda pokreće ACP server koji komunicira preko stdin/stdout koristeći nd
|
||||
|
||||
#### Zastave
|
||||
|
||||
| Zastava | Opis || ------------ | --------------------- |
|
||||
| Zastava | Opis
|
||||
|------------ | --------------------- |
|
||||
| `--cwd` | Radni imenik |
|
||||
| `--port` | Port za slušanje na |
|
||||
| `--hostname` | Slušajte ime hosta |
|
||||
@@ -503,7 +513,8 @@ opencode uninstall
|
||||
|
||||
#### Zastave
|
||||
|
||||
| Zastava | Kratko | Opis || --------------- | ----- | ------------------------------------------- |
|
||||
| Zastava | Kratko | Opis
|
||||
|--------------- | ----- | ------------------------------------------- |
|
||||
| `--keep-config` | `-c` | Čuvajte konfiguracijske datoteke |
|
||||
| `--keep-data` | `-d` | Čuvajte podatke i snimke sesije |
|
||||
| `--dry-run` | | Pokažite šta bi bilo uklonjeno bez uklanjanja |
|
||||
@@ -534,7 +545,8 @@ opencode upgrade v0.1.48
|
||||
|
||||
#### Zastave
|
||||
|
||||
| Zastava | Kratko | Opis || ---------- | ----- | ------------------------------------------------------------------ |
|
||||
| Zastava | Kratko | Opis
|
||||
|---------- | ----- | ------------------------------------------------------------------ |
|
||||
| `--method` | `-m` | Korišteni način instalacije; curl, npm, pnpm, bun, brew |
|
||||
|
||||
---
|
||||
@@ -542,7 +554,8 @@ opencode upgrade v0.1.48
|
||||
## Globalne zastave
|
||||
|
||||
CLI otvorenog koda uzima sljedeće globalne zastavice.
|
||||
| Zastava | Kratko | Opis || -------------- | ----- | ------------------------------------ |
|
||||
| Zastava | Kratko | Opis
|
||||
|-------------- | ----- | ------------------------------------ |
|
||||
| `--help` | `-h` | Prikaži pomoć |
|
||||
| `--version` | `-v` | Odštampaj broj verzije |
|
||||
| `--print-logs` | | Ispis zapisnika u stderr |
|
||||
@@ -553,7 +566,8 @@ CLI otvorenog koda uzima sljedeće globalne zastavice.
|
||||
## Varijable okruženja
|
||||
|
||||
OpenCode se može konfigurirati pomoću varijabli okruženja.
|
||||
| Varijabilna | Vrsta | Opis || ------------------------------------- | ------- | ------------------------------------------------- |
|
||||
| Varijabilna | Vrsta | Opis
|
||||
|------------------------------------- | ------- | ------------------------------------------------- |
|
||||
| `OPENCODE_AUTO_SHARE` | boolean | Automatski dijeli sesije |
|
||||
| `OPENCODE_GIT_BASH_PATH` | string | Putanja do Git Bash izvršne datoteke na Windows |
|
||||
| `OPENCODE_CONFIG` | string | Put do konfiguracionog fajla |
|
||||
@@ -584,7 +598,8 @@ OpenCode se može konfigurirati pomoću varijabli okruženja.
|
||||
### Eksperimentalno
|
||||
|
||||
Ove varijable okruženja omogućavaju eksperimentalne karakteristike koje se mogu promijeniti ili ukloniti.
|
||||
| Varijabilna | Vrsta | Opis || ----------------------------------------------- | ------- | --------------------------------------- |
|
||||
| Varijabilna | Vrsta | Opis
|
||||
|----------------------------------------------- | ------- | --------------------------------------- |
|
||||
| `OPENCODE_EXPERIMENTAL` | boolean | Omogući sve eksperimentalne funkcije |
|
||||
| `OPENCODE_EXPERIMENTAL_ICON_DISCOVERY` | boolean | Omogući otkrivanje ikona |
|
||||
| `OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT` | boolean | Onemogući kopiranje pri odabiru u TUI |
|
||||
|
||||
@@ -183,7 +183,7 @@ Ili da vidite nedavne promjene:
|
||||
|
||||
```md title=".opencode/commands/review-changes.md"
|
||||
---
|
||||
opis: Pregledajte nedavne promjene
|
||||
description: Review recent changes
|
||||
---
|
||||
|
||||
Nedavna git urezivanja:
|
||||
@@ -224,7 +224,7 @@ Opcija `template` definira prompt koji će biti poslan LLM-u kada se naredba izv
|
||||
|
||||
```json title="opencode.json"
|
||||
{
|
||||
"komanda": {
|
||||
"command": {
|
||||
"test": {
|
||||
"template": "Pokrenite kompletan testni paket sa izvještajem o pokrivenosti i pokažite sve greške.\nFokusirajte se na neuspjele testove i predložite popravke."
|
||||
}
|
||||
@@ -262,8 +262,8 @@ Da onemogućite ovo ponašanje, postavite `subtask` na `false`.
|
||||
|
||||
```json title="opencode.json"
|
||||
{
|
||||
"komanda": {
|
||||
"recenzija": {
|
||||
"command": {
|
||||
"review": {
|
||||
"agent": "plan"
|
||||
}
|
||||
}
|
||||
@@ -300,9 +300,9 @@ Koristite `model` konfiguraciju da nadjačate zadani model za ovu naredbu.
|
||||
|
||||
```json title="opencode.json"
|
||||
{
|
||||
"komanda": {
|
||||
"analizirati": {
|
||||
"model": "antropski/claude-3-5-sonnet-20241022"
|
||||
"command": {
|
||||
"analyze": {
|
||||
"model": "anthropic/claude-3-5-sonnet-20241022"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -315,7 +315,7 @@ Ovo je **opciona** opcija konfiguracije.
|
||||
## Embedded
|
||||
|
||||
opencode uključuje nekoliko ugrađenih naredbi kao što su `/init`, `/undo`, `/redo`, `/share`, `/help`; [saznaj više](/docs/tui#commands).
|
||||
:::napomena
|
||||
:::note
|
||||
Prilagođene komande mogu nadjačati ugrađene komande.
|
||||
:::
|
||||
Ako definirate prilagođenu naredbu s istim imenom, ona će nadjačati ugrađenu naredbu.
|
||||
|
||||
@@ -15,9 +15,10 @@ OpenCode podržava i **JSON** i **JSONC** (JSON sa komentarima) formate.
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
// Konfiguracija teme
|
||||
"tema": "otvoreni kod",
|
||||
"model": "antropski/claude-sonnet-4-5",
|
||||
"automatsko ažuriranje": istina,}
|
||||
"theme": "opencode",
|
||||
"model": "anthropic/claude-sonnet-4-5",
|
||||
"autoupdate": true,
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
@@ -26,7 +27,7 @@ OpenCode podržava i **JSON** i **JSONC** (JSON sa komentarima) formate.
|
||||
|
||||
Možete postaviti svoju konfiguraciju na nekoliko različitih lokacija i one imaju a
|
||||
drugačiji redosled prioriteta.
|
||||
:::napomena
|
||||
:::note
|
||||
Konfiguracijski fajlovi su **spojeni zajedno**, a ne zamijenjeni.
|
||||
:::
|
||||
Konfiguracijski fajlovi se spajaju, ne zamjenjuju. Kombiniraju se postavke sa sljedećih konfiguracijskih lokacija. Kasnije konfiguracije poništavaju prethodne samo za konfliktne ključeve. Nekonfliktne postavke iz svih konfiguracija su sačuvane.
|
||||
@@ -45,7 +46,7 @@ Izvori konfiguracije se učitavaju ovim redoslijedom (kasniji izvori poništavaj
|
||||
5. **`.opencode` direktoriji** - agenti, komande, dodaci
|
||||
6. **Inline config** (`OPENCODE_CONFIG_CONTENT` env var) - runtime nadjačava
|
||||
To znači da konfiguracije projekta mogu nadjačati globalne zadane postavke, a globalne konfiguracije mogu nadjačati postavke udaljene organizacije.
|
||||
:::napomena
|
||||
:::note
|
||||
Direktoriji `.opencode` i `~/.config/opencode` koriste **imena u množini** za poddirektorije: `agents/`, `commands/`, `modes/`, `plugins/`, `skills/`, `tools/` i `themes/`. Pojedinačna imena (npr. `agent/`) su također podržana za kompatibilnost unatrag.
|
||||
:::
|
||||
|
||||
@@ -75,9 +76,10 @@ Možete omogućiti određene servere u vašoj lokalnoj konfiguraciji:
|
||||
{
|
||||
"mcp": {
|
||||
"jira": {
|
||||
"tip": "daljinski",
|
||||
"type": "remote",
|
||||
"url": "https://jira.example.com/mcp",
|
||||
"omogućeno": istina }
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -94,7 +96,7 @@ Globalna konfiguracija poništava zadane postavke udaljene organizacije.
|
||||
### Nakon projekta
|
||||
|
||||
Dodajte `opencode.json` u korijen projekta. Konfiguracija projekta ima najveći prioritet među standardnim konfiguracijskim datotekama - ona nadjačava globalne i udaljene konfiguracije.
|
||||
::: tip
|
||||
:::tip
|
||||
Postavite specifičnu konfiguraciju projekta u korijen vašeg projekta.
|
||||
:::
|
||||
Kada se OpenCode pokrene, traži konfiguracijsku datoteku u trenutnom direktoriju ili prelazi do najbližeg Git direktorija.
|
||||
@@ -273,7 +275,7 @@ Amazon Bedrock podržava konfiguraciju specifičnu za AWS:
|
||||
- `region` - AWS regija za Bedrock (zadano na `AWS_REGION` env var ili `us-east-1`)
|
||||
- `profile` - AWS imenovan profil od `~/.aws/credentials` (podrazumevano na `AWS_PROFILE` env var)
|
||||
- `endpoint` - URL prilagođene krajnje tačke za VPC krajnje tačke. Ovo je pseudonim za generičku opciju `baseURL` koristeći terminologiju specifičnu za AWS. Ako su oba navedena, `endpoint` ima prednost.
|
||||
:::napomena
|
||||
:::note
|
||||
Tokeni nosioca (`AWS_BEARER_TOKEN_BEDROCK` ili `/connect`) imaju prednost nad autentifikacijom zasnovanom na profilu. Pogledajte [prednost autentifikacije](/docs/providers#authentication-precedence) za detalje.
|
||||
:::
|
||||
[Saznajte više o konfiguraciji Amazon Bedrock](/docs/providers#amazon-bedrock).
|
||||
@@ -553,7 +555,7 @@ Možete onemogućiti dobavljače koji se automatski učitavaju preko opcije `dis
|
||||
}
|
||||
```
|
||||
|
||||
:::napomena
|
||||
:::note
|
||||
`disabled_providers` ima prioritet nad `enabled_providers`.
|
||||
:::
|
||||
Opcija `disabled_providers` prihvata niz ID-ova provajdera. Kada je provajder onemogućen:
|
||||
@@ -576,7 +578,7 @@ Možete odrediti listu dozvoljenih dobavljača putem opcije `enabled_providers`.
|
||||
```
|
||||
|
||||
Ovo je korisno kada želite da ograničite OpenCode da koristi samo određene provajdere umesto da ih onemogućavate jednog po jednog.
|
||||
:::napomena
|
||||
:::note
|
||||
`disabled_providers` ima prioritet nad `enabled_providers`.
|
||||
:::
|
||||
Ako se provajder pojavljuje i u `enabled_providers` i `disabled_providers`, `disabled_providers` ima prioritet za kompatibilnost unatrag.
|
||||
@@ -594,7 +596,7 @@ Ključ `experimental` sadrži opcije koje su u aktivnom razvoju.
|
||||
}
|
||||
```
|
||||
|
||||
:::oprez
|
||||
:::caution
|
||||
Eksperimentalne opcije nisu stabilne. Mogu se promijeniti ili ukloniti bez prethodne najave.
|
||||
:::
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ description: Projekti i integracije izgrađeni uz OpenCode.
|
||||
---
|
||||
|
||||
Kolekcija projekata zajednice izgrađenih na OpenCode-u.
|
||||
:::napomena
|
||||
:::note
|
||||
Želite li na ovu listu dodati svoj OpenCode projekat? Pošaljite PR.
|
||||
:::
|
||||
Također možete pogledati [awesome-opencode](https://github.com/awesome-opencode/awesome-opencode) i [opencode.cafe](https://opencode.cafe), zajednicu koja spaja ekosistem i zajednicu.
|
||||
@@ -13,7 +13,8 @@ Također možete pogledati [awesome-opencode](https://github.com/awesome-opencod
|
||||
|
||||
## Dodaci
|
||||
|
||||
| Ime | Opis || --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
|
||||
| Ime | Opis
|
||||
|--------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
|
||||
| [opencode-daytona](https://github.com/jamesmurdza/daytona/blob/main/guides/typescript/opencode/README.md) | Automatski pokrenite OpenCode sesije u izoliranim Daytona sandboxovima uz git sinhronizaciju i preglede uživo |
|
||||
| [opencode-helicone-session](https://github.com/H2Shami/opencode-helicone-session) | Automatski ubacite Helicone zaglavlja sesije za grupisanje zahtjeva |
|
||||
| [opencode-type-iject](https://github.com/nick-vi/opencode-type-inject) | Automatski ubaci TypeScript/Svelte tipove u čitanje datoteka pomoću alata za pretraživanje |
|
||||
@@ -47,7 +48,8 @@ Također možete pogledati [awesome-opencode](https://github.com/awesome-opencod
|
||||
|
||||
## Projekti
|
||||
|
||||
| Ime | Opis || ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------- |
|
||||
| Ime | Opis
|
||||
|------------------------------------------------------------------------------------------ | ---------------------------------------------------------------- |
|
||||
| [kimaki](https://github.com/remorses/kimaki) | Discord bot za kontrolu OpenCode sesija, izgrađen na SDK |
|
||||
| [opencode.nvim](https://github.com/NickvanDyke/opencode.nvim) | Neovim dodatak za upite svjestan uređivača, izgrađen na API |
|
||||
| [portal](https://github.com/hosenur/portal) | Mobilni korisnički interfejs za OpenCode preko Tailscale/VPN |
|
||||
@@ -64,6 +66,7 @@ Također možete pogledati [awesome-opencode](https://github.com/awesome-opencod
|
||||
|
||||
## Agenti
|
||||
|
||||
| Ime | Opis || ----------------------------------------------------------------- | ------------------------------------------------------------ |
|
||||
| Ime | Opis
|
||||
|----------------------------------------------------------------- | ------------------------------------------------------------ |
|
||||
| [Agentic](https://github.com/Cluster444/agentic) | Modularni AI agenti i komande za strukturirani razvoj |
|
||||
| [opencode-agents](https://github.com/darrenhinde/opencode-agents) | Konfiguracije, upiti, agenti i dodaci za poboljšane tokove rada |
|
||||
|
||||
@@ -10,7 +10,8 @@ OpenCode automatski formatira datoteke nakon što su napisane ili uređene pomo
|
||||
## Ugrađeno
|
||||
|
||||
OpenCode dolazi sa nekoliko ugrađenih formatera za popularne jezike i okvire. Ispod je lista formatera, podržanih ekstenzija datoteka i naredbi ili opcija konfiguracije koje su mu potrebne.
|
||||
| Formatter | Ekstenzije | Zahtjevi || -------------------- | -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
|
||||
| Formatter | Ekstenzije | Zahtjevi
|
||||
|-------------------- | -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
|
||||
| gofmt | .go | `gofmt` komanda dostupna |
|
||||
| mix | .ex, .exs, .eex, .heex, .leex, .neex, .sface | `mix` komanda dostupna |
|
||||
| ljepše | .js, .jsx, .ts, .tsx, .html, .css, .md, .json, .yaml i [više](https://prettier.io/docs/en/index.html) | `prettier` zavisnost u `package.json` |
|
||||
@@ -60,7 +61,8 @@ Možete prilagoditi formatere kroz `formatter` odjeljak u vašoj OpenCode konfig
|
||||
```
|
||||
|
||||
Svaka konfiguracija formatera podržava sljedeće:
|
||||
| Nekretnine | Vrsta | Opis || ------------- | -------- | ------------------------------------------------------- |
|
||||
| Nekretnine | Vrsta | Opis
|
||||
|------------- | -------- | ------------------------------------------------------- |
|
||||
| `disabled` | boolean | Postavite ovo na `true` da onemogućite formater |
|
||||
| `command` | string[] | Naredba za pokretanje za formatiranje |
|
||||
| `environment` | objekt | Varijable okruženja koje treba postaviti prilikom pokretanja formatera |
|
||||
|
||||
@@ -101,7 +101,8 @@ Također možete koristiti [Personal Access Tokens](https://docs.github.com/en/a
|
||||
## Podržani događaji
|
||||
|
||||
OpenCode se može pokrenuti sljedećim GitHub događajima:
|
||||
| Vrsta događaja | Pokrenuo | Detalji || ----------------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
|
||||
| Vrsta događaja | Pokrenuo | Detalji
|
||||
|----------------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
|
||||
| `issue_comment` | Komentirajte problem ili PR | Navedite `/opencode` ili `/oc` u svom komentaru. OpenCode čita kontekst i može kreirati grane, otvarati PR-ove ili odgovarati. |
|
||||
| `pull_request_review_comment` | Komentirajte određene linije koda u PR-u | Navedite `/opencode` ili `/oc` dok pregledavate kod. OpenCode prima putanju datoteke, brojeve redova i kontekst razlike. |
|
||||
| `issues` | Broj otvoren ili uređen | Automatski pokrenite OpenCode kada se problemi kreiraju ili modificiraju. Zahtijeva `prompt` unos. |
|
||||
|
||||
@@ -254,8 +254,11 @@ Hajde sada da opišemo šta želimo da uradi.
|
||||
da razgovarate s njim kao da razgovarate sa mlađim programerom u svom timu.
|
||||
:::tip
|
||||
Dajte OpenCodeu dosta konteksta i primjera koji će mu pomoći da razumije šta vi
|
||||
želim. ::: 2. **Ponovite plan**
|
||||
Kada vam da plan, možete mu dati povratne informacije ili dodati više detalja.
|
||||
želim.
|
||||
:::
|
||||
|
||||
2. **Ponovite plan**
|
||||
Kada vam da plan, možete mu dati povratne informacije ili dodati više detalja.
|
||||
|
||||
```txt frame="none"
|
||||
We'd like to design this new screen using a design I've used before.
|
||||
@@ -265,11 +268,14 @@ Kada vam da plan, možete mu dati povratne informacije ili dodati više detalja.
|
||||
```
|
||||
|
||||
:::tip
|
||||
Prevucite i ispustite slike u terminal da biste ih dodali u prompt. :::
|
||||
Prevucite i ispustite slike u terminal da biste ih dodali u prompt.
|
||||
:::
|
||||
OpenCode može skenirati sve slike koje mu date i dodati ih u prompt. Možeš
|
||||
učinite to povlačenjem i ispuštanjem slike u terminal. 3. **Izgradite funkciju**
|
||||
Kada se osjećate ugodno s planom, vratite se na _Build mode_ do
|
||||
ponovnim pritiskom na taster **Tab**.
|
||||
učinite to povlačenjem i ispuštanjem slike u terminal.
|
||||
|
||||
3. **Izgradite funkciju**
|
||||
Kada se osjećate ugodno s planom, vratite se na _Build mode_ do
|
||||
ponovnim pritiskom na taster **Tab**.
|
||||
|
||||
```bash frame="none"
|
||||
<TAB>
|
||||
|
||||
@@ -131,7 +131,8 @@ Možete onemogućiti spajanje tipki dodavanjem ključa u svoju konfiguraciju s v
|
||||
## Prečice za radnu površinu
|
||||
|
||||
Unos prompta aplikacije OpenCode za desktop podržava uobičajene prečice u stilu Readline/Emacs za uređivanje teksta. Oni su ugrađeni i trenutno se ne mogu konfigurirati putem `opencode.json`.
|
||||
| Prečica | Akcija || -------- | ---------------------------------------- |
|
||||
| Prečica | Akcija
|
||||
|-------- | ---------------------------------------- |
|
||||
| `ctrl+a` | Prelazak na početak tekućeg reda |
|
||||
| `ctrl+e` | Prelazak na kraj trenutnog reda |
|
||||
| `ctrl+b` | Pomeri kursor za jedan znak unazad |
|
||||
|
||||
@@ -8,7 +8,8 @@ description: OpenCode se integriše sa vašim LSP serverima.
|
||||
## Ugrađeno
|
||||
|
||||
OpenCode dolazi sa nekoliko ugrađenih LSP servera za popularne jezike:
|
||||
| LSP server | Ekstenzije | Zahtjevi || ------------------ | ------------------------------------------------------------------- | ------------------------------------------------------------ |
|
||||
| LSP server | Ekstenzije | Zahtjevi
|
||||
|------------------ | ------------------------------------------------------------------- | ------------------------------------------------------------ |
|
||||
| astro | .astro | Automatske instalacije za Astro projekte |
|
||||
| bash | .sh, .bash, .zsh, .ksh | Automatski instalira bash-language-server |
|
||||
| clangd | .c, .cpp, .cc, .cxx, .c++, .h, .hpp, .hh, .hxx, .h++ | Automatske instalacije za C/C++ projekte |
|
||||
@@ -42,7 +43,7 @@ OpenCode dolazi sa nekoliko ugrađenih LSP servera za popularne jezike:
|
||||
| yaml-ls | .yaml, .yml | Automatski instalira Red Hat yaml-language-server |
|
||||
| zls | .zig, .zon | `zig` komanda dostupna |
|
||||
LSP serveri su automatski omogućeni kada se otkrije jedna od gore navedenih ekstenzija datoteke i zahtjevi su ispunjeni.
|
||||
:::napomena
|
||||
:::note
|
||||
Možete onemogućiti automatska preuzimanja LSP servera tako što ćete postaviti varijablu okruženja `OPENCODE_DISABLE_LSP_DOWNLOAD` na `true`.
|
||||
:::
|
||||
|
||||
@@ -69,7 +70,8 @@ Možete prilagoditi LSP servere kroz `lsp` odjeljak u vašoj opencode konfigurac
|
||||
```
|
||||
|
||||
Svaki LSP server podržava sljedeće:
|
||||
| Nekretnine | Vrsta | Opis || ---------------- | -------- | ------------------------------------------------- |
|
||||
| Nekretnine | Vrsta | Opis
|
||||
|---------------- | -------- | ------------------------------------------------- |
|
||||
| `disabled` | boolean | Postavite ovo na `true` da onemogućite LSP server |
|
||||
| `command` | string[] | Naredba za pokretanje LSP servera |
|
||||
| `extensions` | string[] | Ekstenzije datoteka koje ovaj LSP server treba da rukuje |
|
||||
@@ -117,7 +119,7 @@ Koristite svojstvo `initialization` da prosledite opcije inicijalizacije na LSP
|
||||
}
|
||||
```
|
||||
|
||||
:::napomena
|
||||
:::note
|
||||
Opcije inicijalizacije razlikuju se od LSP servera. Provjerite dokumentaciju vašeg LSP servera za dostupne opcije.
|
||||
:::
|
||||
|
||||
|
||||
@@ -105,7 +105,8 @@ use the mcp_everything tool to add the number 3 and 4
|
||||
#### Opcije
|
||||
|
||||
Ovdje su sve opcije za konfiguriranje lokalnog MCP servera.
|
||||
| Opcija | Vrsta | Obavezno | Opis || ------------- | ------- | -------- | ----------------------------------------------------------------------------------- |
|
||||
| Opcija | Vrsta | Obavezno | Opis
|
||||
|------------- | ------- | -------- | ----------------------------------------------------------------------------------- |
|
||||
| `type` | String | Y | Tip veze sa MCP serverom, mora biti `"local"`. |
|
||||
| `command` | Niz | Y | Naredba i argumenti za pokretanje MCP servera. |
|
||||
| `environment` | Objekt | | Varijable okruženja koje treba postaviti prilikom pokretanja servera. |
|
||||
@@ -138,7 +139,8 @@ Dodajte udaljene MCP servere postavljanjem `type` na `"remote"`.
|
||||
|
||||
#### Opcije
|
||||
|
||||
| Opcija | Vrsta | Obavezno | Opis || --------- | ------- | -------- | ----------------------------------------------------------------------------------- |
|
||||
| Opcija | Vrsta | Obavezno | Opis
|
||||
|--------- | ------- | -------- | ----------------------------------------------------------------------------------- |
|
||||
| `type` | String | Y | Tip veze sa MCP serverom, mora biti `"remote"`. |
|
||||
| `url` | String | Y | URL udaljenog MCP servera. |
|
||||
| `enabled` | Boolean | | Omogućite ili onemogućite MCP server pri pokretanju. |
|
||||
@@ -246,7 +248,8 @@ Ako želite onemogućiti automatski OAuth za server (npr. za servere koji umjest
|
||||
|
||||
#### OAuth opcije
|
||||
|
||||
| Opcija | Vrsta | Opis || -------------- | --------------- | -------------------------------------------------------------------------------- |
|
||||
| Opcija | Vrsta | Opis
|
||||
|-------------- | --------------- | -------------------------------------------------------------------------------- |
|
||||
| `oauth` | Objekt \| false | OAuth konfiguracijski objekt, ili `false` da onemogućite automatsko otkrivanje OAuth. |
|
||||
| `clientId` | String | ID OAuth klijenta. Ako nije navedeno, pokušat će se izvršiti dinamička registracija klijenta. |
|
||||
| `clientSecret` | String | Tajna OAuth klijenta, ako to zahtijeva autorizacijski server. |
|
||||
@@ -355,7 +358,7 @@ Uzorak glob koristi jednostavne šablone globbiranja regularnih izraza:
|
||||
- `*` odgovara nuli ili više bilo kojeg znaka (npr. `"my-mcp*"` odgovara `my-mcp_search`, `my-mcp_list`, itd.)
|
||||
- `?` odgovara tačno jednom znaku
|
||||
- Svi ostali likovi se bukvalno podudaraju
|
||||
:::napomena
|
||||
:::note
|
||||
MCP serverski alati se registruju sa imenom servera kao prefiksom, tako da onemogućite sve alate za server jednostavno koristite:
|
||||
|
||||
```
|
||||
|
||||
@@ -3,7 +3,7 @@ title: Načini rada
|
||||
description: Različiti načini za različite slučajeve upotrebe.
|
||||
---
|
||||
|
||||
:::oprez
|
||||
:::caution
|
||||
Načini se sada konfiguriraju preko opcije `agent` u konfiguraciji otvorenog koda. The
|
||||
`mode` opcija je sada zastarjela. [Saznajte više](/docs/agents).
|
||||
:::
|
||||
@@ -211,7 +211,8 @@ Kontrolirajte koji su alati dostupni u ovom načinu rada pomoću `tools` konfigu
|
||||
#### Dostupni alati
|
||||
|
||||
Ovdje su svi alati koji se mogu kontrolirati kroz konfiguraciju načina rada.
|
||||
| Alat | Opis || ----------- | ----------------------- |
|
||||
| Alat | Opis
|
||||
|----------- | ----------------------- |
|
||||
| `bash` | Izvrši naredbe ljuske |
|
||||
| `edit` | Izmijenite postojeće datoteke |
|
||||
| `write` | Kreirajte nove fajlove |
|
||||
|
||||
@@ -20,7 +20,7 @@ export HTTP_PROXY=http://proxy.example.com:8080
|
||||
export NO_PROXY=localhost,127.0.0.1
|
||||
```
|
||||
|
||||
:::oprez
|
||||
:::caution
|
||||
TUI komunicira sa lokalnim HTTP serverom. Morate zaobići proxy za ovu vezu kako biste spriječili petlje usmjeravanja.
|
||||
:::
|
||||
|
||||
@@ -34,7 +34,7 @@ Ako vaš proxy zahtijeva osnovnu autentifikaciju, uključite vjerodajnice u URL.
|
||||
export HTTPS_PROXY=http://username:password@proxy.example.com:8080
|
||||
```
|
||||
|
||||
:::oprez
|
||||
:::caution
|
||||
Izbjegavajte tvrdo kodiranje lozinki. Koristite varijable okruženja ili sigurno skladište vjerodajnica.
|
||||
:::
|
||||
|
||||
|
||||
@@ -178,7 +178,7 @@ Kada OpenCode zatraži odobrenje, korisničko sučelje nudi tri ishoda:
|
||||
## Agenti
|
||||
|
||||
Možete nadjačati dozvole po agentu. Dozvole agenta su spojene sa globalnom konfiguracijom, a pravila agenta imaju prednost. [Saznajte više](/docs/agents#permissions) o dozvolama agenta.
|
||||
:::napomena
|
||||
:::note
|
||||
Pogledajte gornji odjeljak [Granularna pravila (sintaksa objekata)](#granular-rules-object-syntax) za detaljnije primjere podudaranja uzoraka.
|
||||
:::
|
||||
|
||||
|
||||
@@ -224,7 +224,7 @@ export const NotificationPlugin = async ({ project, client, $, directory, worktr
|
||||
```
|
||||
|
||||
Koristimo `osascript` za pokretanje AppleScript-a na macOS-u. Ovdje ga koristimo za slanje obavještenja.
|
||||
:::napomena
|
||||
:::note
|
||||
Ako koristite desktop aplikaciju OpenCode, ona može automatski slati sistemske obavijesti kada je odgovor spreman ili kada dođe do greške u sesiji.
|
||||
:::
|
||||
|
||||
|
||||
@@ -301,7 +301,7 @@ Hvis dette ikke er indstillet, vil agenten fortsætte med at iterere, indtil mod
|
||||
|
||||
Når grænsen er nået, modtager agenten en speciel systemprompt, der instruerer den om at svare med en opsummering af sit arbejde og anbefalede resterende opgaver.
|
||||
|
||||
:::forsigtighed
|
||||
:::caution
|
||||
Det gamle `maxSteps` følte er forældet. Brug `steps` i stedet.
|
||||
:::
|
||||
|
||||
|
||||
@@ -553,30 +553,30 @@ OpenCode kan konfigureres ved hjælp af miljøvariabler.
|
||||
|
||||
| Variabel | Skriv | Beskrivelse |
|
||||
| ------------------------------------- | ------ | --------------------------------------------------------------------- |
|
||||
| `OPENCODE_AUTO_SHARE` | boolsk | Del automatisk session |
|
||||
| `OPENCODE_GIT_BASH_PATH` | styrke | Sti til Git Bash eksekverbar på Windows |
|
||||
| `OPENCODE_CONFIG` | styrke | Sti til konfigurationsfil |
|
||||
| `OPENCODE_CONFIG_DIR` | styrke | Sti til konfigurationsmappe |
|
||||
| `OPENCODE_CONFIG_CONTENT` | styrke | Indbygget json-konfigurationsindhold |
|
||||
| `OPENCODE_DISABLE_AUTOUPDATE` | boolsk | Deaktiver automatisk opdateringskontrol |
|
||||
| `OPENCODE_DISABLE_PRUNE` | boolsk | Deaktiver beskæring af gamle data |
|
||||
| `OPENCODE_DISABLE_TERMINAL_TITLE` | boolsk | Deaktiver automatisk opdatering af terminaltitel |
|
||||
| `OPENCODE_PERMISSION` | styrke | Indbygget json-tilladelseskonfiguration |
|
||||
| `OPENCODE_DISABLE_DEFAULT_PLUGINS` | boolsk | Deaktiver standard plugins |
|
||||
| `OPENCODE_DISABLE_LSP_DOWNLOAD` | boolsk | Deaktiver automatisk LSP-serverdownloads |
|
||||
| `OPENCODE_ENABLE_EXPERIMENTAL_MODELS` | boolsk | Aktive eksperimentelle modeller |
|
||||
| `OPENCODE_DISABLE_AUTOCOMPACT` | boolsk | Deaktiver automatisk kontekstkomprimering |
|
||||
| `OPENCODE_DISABLE_CLAUDE_CODE` | boolsk | Deaktiver læsning fra `.claude` (prompt + færdigheder) |
|
||||
| `OPENCODE_DISABLE_CLAUDE_CODE_PROMPT` | boolsk | Deaktiver læsning `~/.claude/CLAUDE.md` |
|
||||
| `OPENCODE_DISABLE_CLAUDE_CODE_SKILLS` | boolsk | Deaktiver indlæsning af `.claude/skills` |
|
||||
| `OPENCODE_DISABLE_MODELS_FETCH` | boolsk | Deaktivering af modeller fra eksterne kilder |
|
||||
| `OPENCODE_FAKE_VCS` | styrke | Falsk VCS-udbyder til testformål |
|
||||
| `OPENCODE_DISABLE_FILETIME_CHECK` | boolsk | Deaktiver filtidskontrol for optimering |
|
||||
| `OPENCODE_CLIENT` | styrke | Klient-id (standard til `cli`) |
|
||||
| `OPENCODE_ENABLE_EXA` | boolsk | Aktiver Exa-websøgeværktøjer |
|
||||
| `OPENCODE_SERVER_PASSWORD` | styrke | Aktiver grundlæggende godkendelse for `serve`/`web` |
|
||||
| `OPENCODE_SERVER_USERNAME` | styrke | Tilsidesæt grundlæggende godkendelsesbrugernavn (standard `opencode`) |
|
||||
| `OPENCODE_MODELS_URL` | styrke | Brugerdefineret URL til hentning af modelkonfiguration |
|
||||
| `OPENCODE_AUTO_SHARE` | boolean | Del automatisk session |
|
||||
| `OPENCODE_GIT_BASH_PATH` | string | Sti til Git Bash eksekverbar på Windows |
|
||||
| `OPENCODE_CONFIG` | string | Sti til konfigurationsfil |
|
||||
| `OPENCODE_CONFIG_DIR` | string | Sti til konfigurationsmappe |
|
||||
| `OPENCODE_CONFIG_CONTENT` | string | Indbygget json-konfigurationsindhold |
|
||||
| `OPENCODE_DISABLE_AUTOUPDATE` | boolean | Deaktiver automatisk opdateringskontrol |
|
||||
| `OPENCODE_DISABLE_PRUNE` | boolean | Deaktiver beskæring af gamle data |
|
||||
| `OPENCODE_DISABLE_TERMINAL_TITLE` | boolean | Deaktiver automatisk opdatering af terminaltitel |
|
||||
| `OPENCODE_PERMISSION` | string | Indbygget json-tilladelseskonfiguration |
|
||||
| `OPENCODE_DISABLE_DEFAULT_PLUGINS` | boolean | Deaktiver standard plugins |
|
||||
| `OPENCODE_DISABLE_LSP_DOWNLOAD` | boolean | Deaktiver automatisk LSP-serverdownloads |
|
||||
| `OPENCODE_ENABLE_EXPERIMENTAL_MODELS` | boolean | Aktive eksperimentelle modeller |
|
||||
| `OPENCODE_DISABLE_AUTOCOMPACT` | boolean | Deaktiver automatisk kontekstkomprimering |
|
||||
| `OPENCODE_DISABLE_CLAUDE_CODE` | boolean | Deaktiver læsning fra `.claude` (prompt + færdigheder) |
|
||||
| `OPENCODE_DISABLE_CLAUDE_CODE_PROMPT` | boolean | Deaktiver læsning `~/.claude/CLAUDE.md` |
|
||||
| `OPENCODE_DISABLE_CLAUDE_CODE_SKILLS` | boolean | Deaktiver indlæsning af `.claude/skills` |
|
||||
| `OPENCODE_DISABLE_MODELS_FETCH` | boolean | Deaktivering af modeller fra eksterne kilder |
|
||||
| `OPENCODE_FAKE_VCS` | string | Falsk VCS-udbyder til testformål |
|
||||
| `OPENCODE_DISABLE_FILETIME_CHECK` | boolean | Deaktiver filtidskontrol for optimering |
|
||||
| `OPENCODE_CLIENT` | string | Klient-id (standard til `cli`) |
|
||||
| `OPENCODE_ENABLE_EXA` | boolean | Aktiver Exa-websøgeværktøjer |
|
||||
| `OPENCODE_SERVER_PASSWORD` | string | Aktiver grundlæggende godkendelse for `serve`/`web` |
|
||||
| `OPENCODE_SERVER_USERNAME` | string | Tilsidesæt grundlæggende godkendelsesbrugernavn (standard `opencode`) |
|
||||
| `OPENCODE_MODELS_URL` | string | Brugerdefineret URL til hentning af modelkonfiguration |
|
||||
|
||||
---
|
||||
|
||||
@@ -586,16 +586,16 @@ Disse miljøvariabler muliggør eksperimentelle funktioner, der kan ændres elle
|
||||
|
||||
| Variabel | Skriv | Beskrivelse |
|
||||
| ----------------------------------------------- | ------ | ------------------------------------------ |
|
||||
| `OPENCODE_EXPERIMENTAL` | boolsk | Aktiver alle eksperimentelle funktioner |
|
||||
| `OPENCODE_EXPERIMENTAL_ICON_DISCOVERY` | boolsk | Aktiver ikonopdagelse |
|
||||
| `OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT` | boolsk | Deaktiver kopi ved valg i TUI |
|
||||
| `OPENCODE_EXPERIMENTAL` | boolean | Aktiver alle eksperimentelle funktioner |
|
||||
| `OPENCODE_EXPERIMENTAL_ICON_DISCOVERY` | boolean | Aktiver ikonopdagelse |
|
||||
| `OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT` | boolean | Deaktiver kopi ved valg i TUI |
|
||||
| `OPENCODE_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS` | nummer | Standard timeout for bash-kommandoer i ms |
|
||||
| `OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX` | nummer | Maks. output-tokens for LLM-svar |
|
||||
| `OPENCODE_EXPERIMENTAL_FILEWATCHER` | boolsk | Aktiver filovervågning for hele dir |
|
||||
| `OPENCODE_EXPERIMENTAL_OXFMT` | boolsk | Aktiver oxfmt formatter |
|
||||
| `OPENCODE_EXPERIMENTAL_LSP_TOOL` | boolsk | Aktive eksperimenter LSP værktøj |
|
||||
| `OPENCODE_EXPERIMENTAL_DISABLE_FILEWATCHER` | boolsk | Deaktiver filovervågning |
|
||||
| `OPENCODE_EXPERIMENTAL_EXA` | boolsk | Aktive eksperimenter Exa-funktioner |
|
||||
| `OPENCODE_EXPERIMENTAL_LSP_TY` | boolsk | Aktive forsøg LSP typekontrol |
|
||||
| `OPENCODE_EXPERIMENTAL_MARKDOWN` | boolsk | Aktive eksperimentelle markdown-funktioner |
|
||||
| `OPENCODE_EXPERIMENTAL_PLAN_MODE` | boolsk | Aktiver plantilstand |
|
||||
| `OPENCODE_EXPERIMENTAL_FILEWATCHER` | boolean | Aktiver filovervågning for hele dir |
|
||||
| `OPENCODE_EXPERIMENTAL_OXFMT` | boolean | Aktiver oxfmt formatter |
|
||||
| `OPENCODE_EXPERIMENTAL_LSP_TOOL` | boolean | Aktive eksperimenter LSP værktøj |
|
||||
| `OPENCODE_EXPERIMENTAL_DISABLE_FILEWATCHER` | boolean | Deaktiver filovervågning |
|
||||
| `OPENCODE_EXPERIMENTAL_EXA` | boolean | Aktive eksperimenter Exa-funktioner |
|
||||
| `OPENCODE_EXPERIMENTAL_LSP_TY` | boolean | Aktive forsøg LSP typekontrol |
|
||||
| `OPENCODE_EXPERIMENTAL_MARKDOWN` | boolean | Aktive eksperimentelle markdown-funktioner |
|
||||
| `OPENCODE_EXPERIMENTAL_PLAN_MODE` | boolean | Aktiver plantilstand |
|
||||
|
||||
@@ -620,7 +620,7 @@ Nøglen `experimental` indeholder muligheder, der er under aktiv udvikling.
|
||||
}
|
||||
```
|
||||
|
||||
:::forsigtighed
|
||||
:::caution
|
||||
Eksperimentelle muligheder er ikke stabile. De kan ændres eller fjernes uden varsel.
|
||||
:::
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ npm login --registry=https://your-company.jfrog.io/api/npm/npm-virtual/
|
||||
Dette opretter `~/.npmrc` med godkendelsesdetaljer. OpenCode vil automatisk
|
||||
samle dette op.
|
||||
|
||||
:::forsigtighed
|
||||
:::caution
|
||||
Du skal være logget ind i det private register, før du kører OpenCode.
|
||||
:::
|
||||
|
||||
|
||||
@@ -69,10 +69,10 @@ Hver formateringskonfiguration understøtter følgende:
|
||||
|
||||
| Ejendom | Skriv | Beskrivelse |
|
||||
| ------------- | -------- | -------------------------------------------------------------------- |
|
||||
| `disabled` | boolsk | Indstil dette til `true` for at deaktivere formateringsværktøjet |
|
||||
| `command` | styrke[] | Kommandoen til at køre for formatering |
|
||||
| `environment` | objekt | Miljøvariabler, der skal indstilles, når formateringsværktøjet køres |
|
||||
| `extensions` | styrke[] | Filtypenavne, som denne formaterer skal håndtere |
|
||||
| `disabled` | boolean | Indstil dette til `true` for at deaktivere formateringsværktøjet |
|
||||
| `command` | string[] | Kommandoen til at køre for formatering |
|
||||
| `environment` | object | Miljøvariabler, der skal indstilles, når formateringsværktøjet køres |
|
||||
| `extensions` | string[] | Filtypenavne, som denne formaterer skal håndtere |
|
||||
|
||||
Lad os se på nogle eksempler.
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ Eller du kan indstille det manuelt.
|
||||
|
||||
- `model`: Den model, der skal bruges med OpenCode. Antager formatet `provider/model`. Dette er **påkrævet**.
|
||||
- `agent`: Agenten, der skal bruges. Skal være en primær agent. Falder tilbage til `default_agent` fra config eller `"build"`, hvis den ikke findes.
|
||||
- `share`: Om OpenCode-sessionen skal dele. Standard er **sand** for offentlige arkiver.
|
||||
- `share`: Om OpenCode-sessionen skal dele. Standard er **true** for offentlige arkiver.
|
||||
- `prompt`: Valgfri brugerdefineret prompt for at tilsidesætte standardadfærden. Brug dette til at tilpasse, hvordan OpenCode behandler anmodninger.
|
||||
- `token`: Valgfrit GitHub adgangstoken til at udføre operationer såsom oprettelse af kommentarer, begå ændringer og åbning af pull-anmodninger. Som standard bruger OpenCode installationsadgangstokenet fra OpenCode GitHub-appen, så commits, kommentarer og pull-anmodninger ser ud til at komme fra appen.
|
||||
|
||||
|
||||
@@ -78,11 +78,11 @@ Hver LSP- server understøtter følgende:
|
||||
|
||||
| Ejendom | Skriv | Beskrivelse |
|
||||
| ---------------- | -------- | --------------------------------------------------------- |
|
||||
| `disabled` | boolsk | Indstil dette til `true` for at deaktivere LSP-serveren |
|
||||
| `command` | styrke[] | Kommandoen til at starte LSP-serveren |
|
||||
| `extensions` | styrke[] | Filtypenavne, som denne LSP-server skal håndtere |
|
||||
| `env` | objekt | Miljøvariabler, der skal indstilles, når serveren starter |
|
||||
| `initialization` | objekt | Initialiseringsmuligheder for at sende til LSP-serveren |
|
||||
| `disabled` | boolean | Indstil dette til `true` for at deaktivere LSP-serveren |
|
||||
| `command` | string[] | Kommandoen til at starte LSP-serveren |
|
||||
| `extensions` | string[] | Filtypenavne, som denne LSP-server skal håndtere |
|
||||
| `env` | object | Miljøvariabler, der skal indstilles, når serveren starter |
|
||||
| `initialization` | object | Initialiseringsmuligheder for at sende til LSP-serveren |
|
||||
|
||||
Lad os se på nogle eksempler.
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ Her er alle muligheder for at konfigurere en lokal MCP-server.
|
||||
| ------------- | ------- | -------- | ------------------------------------------------------------------------------------ |
|
||||
| `type` | String | Y | Type MCP serverforbindelse, skal være `"local"`. |
|
||||
| `command` | Array | Y | Kommando og argumenter til at køre MCP-serveren. |
|
||||
| `environment` | Objekt | | Miljøvariabler, der skal indstilles, når serveren kører. |
|
||||
| `environment` | Object | | Miljøvariabler, der skal indstilles, når serveren kører. |
|
||||
| `enabled` | Boolean | | Aktiver eller deaktiver MCP-serveren ved opstart. |
|
||||
| `timeout` | Nummer | | Timeout i ms for at hente værktøjer fra MCP-serveren. Standard er 5000 (5 sekunder). |
|
||||
|
||||
@@ -157,8 +157,8 @@ Tilføj ekstern MCP-server ved at indstille `type` til `"remote"`.
|
||||
| `type` | String | Y | Type MCP serverforbindelse, skal være `"remote"`. |
|
||||
| `url` | String | Y | URL af den eksterne MCP-server. |
|
||||
| `enabled` | Boolean | | Aktiver eller deaktiver MCP-serveren ved opstart. |
|
||||
| `headers` | Objekt | | Overskrifter til at sende med anmodningen. |
|
||||
| `oauth` | Objekt | | OAuth-godkendelseskonfiguration. Se afsnittet [OAuth](#oauth) nedenfor. |
|
||||
| `headers` | Object | | Overskrifter til at sende med anmodningen. |
|
||||
| `oauth` | Object | | OAuth-godkendelseskonfiguration. Se afsnittet [OAuth](#oauth) nedenfor. |
|
||||
| `timeout` | Nummer | | Timeout i ms for at hente værktøjer fra MCP-serveren. Standard er 5000 (5 sekunder). |
|
||||
|
||||
---
|
||||
@@ -268,7 +268,7 @@ Hvis du vil deaktivere automatisk OAuth for en server (f.eks. for servere, der b
|
||||
|
||||
| Mulighed | Skriv | Beskrivelse |
|
||||
| -------------- | --------------- | ----------------------------------------------------------------------------------------- |
|
||||
| `oauth` | Objekt \| falsk | OAuth-konfigurationsobjekt eller `false` for at deaktivere OAuth-auto-detektion. |
|
||||
| `oauth` | Object \| false | OAuth-konfigurationsobjekt eller `false` for at deaktivere OAuth-auto-detektion. |
|
||||
| `clientId` | String | OAuth-klient-id. Hvis det ikke er angivet, vil dynamisk klientregistrering blive forsøgt. |
|
||||
| `clientSecret` | String | OAuth-klienthemmelighed, hvis det kræves af autorisationsserveren. |
|
||||
| `scope` | String | OAuth-omfang at anmode om under godkendelse. |
|
||||
|
||||
@@ -3,7 +3,7 @@ title: Tilstande
|
||||
description: Forskellige tilstande til forskellige anvendelsestilfælde.
|
||||
---
|
||||
|
||||
:::forsigtighed
|
||||
:::caution
|
||||
Tilstande er nu konfigureret gennem indstillingen `agent` i opencode-konfigurationen. De
|
||||
`mode` mulighed er nu forældet. [Learn more](/docs/agents).
|
||||
:::
|
||||
|
||||
@@ -22,7 +22,7 @@ export HTTP_PROXY=http://proxy.example.com:8080
|
||||
export NO_PROXY=localhost,127.0.0.1
|
||||
```
|
||||
|
||||
:::forsigtighed
|
||||
:::caution
|
||||
TUI kommunikerer med en lokal HTTP-server. Du skal omgå proxyen for denne forbindelse for at forhindre routingsløjfer.
|
||||
:::
|
||||
|
||||
@@ -38,7 +38,7 @@ Hvis din proxy kræver grundlæggende godkendelse, skal du inkludere legitimatio
|
||||
export HTTPS_PROXY=http://username:password@proxy.example.com:8080
|
||||
```
|
||||
|
||||
:::forsigtighed
|
||||
:::caution
|
||||
Undgå hardkodning af adgangskoder. Brug miljøvariabler eller sikker lagring af legitimationsoplysninger.
|
||||
:::
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ Du kan tilpasse basen URL for enhver leverandør ved å angi alternativet `baseU
|
||||
OpenCode Zen er en liste over modeller levert av OpenCode-teamet som har vært
|
||||
testet og verifisert for å fungere godt med OpenCode. [Finn ut mer](/docs/zen).
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
Hvis du er ny, anbefaler vi å starte med OpenCode Zen.
|
||||
:::
|
||||
|
||||
@@ -129,7 +129,7 @@ Slik bruker du Amazon Bedrock med OpenCode:
|
||||
1. Gå over til **modellkatalogen** i Amazon Bedrock-konsollen og be om
|
||||
tilgang til modellene du ønsker.
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
Du må ha tilgang til modellen du ønsker i Amazon Bedrock.
|
||||
:::
|
||||
|
||||
@@ -180,7 +180,7 @@ Slik bruker du Amazon Bedrock med OpenCode:
|
||||
- `profile` - AWS navngitt profil fra `~/.aws/credentials`
|
||||
- `endpoint` - Egendefinert endepunkt URL for VPC endepunkter (alias for generisk `baseURL`-alternativ)
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
Alternativer for konfigurasjonsfil har forrang over miljøvariabler.
|
||||
:::
|
||||
|
||||
@@ -278,7 +278,7 @@ For egendefinerte slutningsprofiler, bruk modellen og leverandørnavnet i nøkke
|
||||
/models
|
||||
```
|
||||
|
||||
::: info
|
||||
:::info
|
||||
Å bruke Claude Pro/Max-abonnementet ditt i OpenCode støttes ikke offisielt av [Anthropic](https://anthropic.com).
|
||||
:::
|
||||
|
||||
@@ -853,7 +853,7 @@ Slik bruker du Google Vertex AI med OpenCode:
|
||||
export VERTEX_LOCATION=global
|
||||
```
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
`global`-regionen forbedrer tilgjengeligheten og reduserer feil uten ekstra kostnad. Bruk regionale endepunkter (f.eks. `us-central1`) for krav til dataopphold. [Finn ut mer](https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-partner-models#regional_and_global_endpoints)
|
||||
:::
|
||||
|
||||
@@ -1222,7 +1222,7 @@ Slik bruker du Kimi K2 fra Moonshot AI:
|
||||
|
||||
Du kan konfigurere opencode for å bruke lokale modeller gjennom Ollama.
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
Ollama kan automatisk konfigurere seg selv for OpenCode. Se [Ollama-integrasjonsdokumentene](https://docs.ollama.com/integrations/opencode) for detaljer.
|
||||
:::
|
||||
|
||||
@@ -1254,7 +1254,7 @@ I dette eksemplet:
|
||||
- `options.baseURL` er endepunktet for den lokale serveren.
|
||||
- `models` er et kart over modell-ID-er til deres konfigurasjoner. Modellnavnet vil vises i modellvalglisten.
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
Hvis verktøykall ikke fungerer, prøv å øke `num_ctx` i Ollama. Start rundt 16k - 32k.
|
||||
:::
|
||||
|
||||
@@ -1431,7 +1431,7 @@ SAP AI Core gir tilgang til 40+ modeller fra OpenAI, Anthropic, Google, Amazon,
|
||||
|
||||
1. Gå til din [SAP BTP Cockpit](https://account.hana.ondemand.com/), naviger til din SAP AI kjernetjenesteforekomst, og lag en tjenestenøkkel.
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
Tjenestenøkkelen er et JSON-objekt som inneholder `clientid`, `clientsecret`, `url` og `serviceurls.AI_API_URL`. Du finner AI kjerneforekomsten din under **Tjenester** > **Forekomster og abonnementer** i BTP cockpiten.
|
||||
:::
|
||||
|
||||
@@ -1748,7 +1748,7 @@ Noen nyttige rutealternativer:
|
||||
|
||||
Slik legger du til en **OpenAI-kompatibel**-leverandør som ikke er oppført i `/connect`-kommandoen:
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
Du kan bruke hvilken som helst OpenAI-kompatibel leverandør med opencode. De fleste moderne AI-leverandører tilbyr OpenAI-kompatible APIer.
|
||||
:::
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ Du kan gi tilpassede instruksjoner for å OpenCode ved å opprette en `AGENTS.md
|
||||
|
||||
For å lage en ny `AGENTS.md` fil, kan du kjøre kommandoen `/init` i opencode.
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
Du bør overgi prosjektets `AGENTS.md`-fil til Git.
|
||||
:::
|
||||
|
||||
@@ -175,6 +175,6 @@ Denne tilnærmingen lar deg:
|
||||
- Hold AGENTS.md kortfattet mens du refererer til detaljerte retningslinjer
|
||||
- Sørg for at opencode laster filer kun når det er nødvendig for den spesifikke oppgaven
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
For monorepos eller prosjekter med delte standarder er bruk av `opencode.json` med glob-mønstre (som `packages/*/AGENTS.md`) mer vedlikeholdbart enn manuelle instruksjoner.
|
||||
:::
|
||||
|
||||
@@ -210,7 +210,7 @@ const pathInfo = await client.path.get()
|
||||
| Metode | Beskrivelse | Svar |
|
||||
| -------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------- |
|
||||
| `config.get()` | Få konfigurasjonsinformasjon | <a href={typesUrl}><code>Config</code></a> |
|
||||
| `config.providers()` | Liste leverandører og standardmodeller | `{ providers: `<a href={typesUrl}><code>Tilbyder[]</code></a>`, default: { [key: string]: string } }` |
|
||||
| `config.providers()` | Liste leverandører og standardmodeller | `{ providers: `<a href={typesUrl}><code>Provider[]</code></a>`, default: { [key: string]: string } }` |
|
||||
|
||||
---
|
||||
|
||||
@@ -239,10 +239,10 @@ const { providers, default: defaults } = await client.config.providers()
|
||||
| `session.share({ path })` | Del økten | Returnerer <a href={typesUrl}><code>Session</code></a> |
|
||||
| `session.unshare({ path })` | Slutt å dele økten | Returnerer <a href={typesUrl}><code>Session</code></a> |
|
||||
| `session.summarize({ path, body })` | Oppsummer økten | Returnerer `boolean` |
|
||||
| `session.messages({ path })` | Liste meldinger i en økt | Returnerer `{ info: `<a href={typesUrl}><code>Message</code></a>`, parts: `<a href={typesUrl}><code>Del[]</code></a>`}[]` |
|
||||
| `session.message({ path })` | Få meldingsdetaljer | Returnerer `{ info: `<a href={typesUrl}><code>Message</code></a>`, parts: `<a href={typesUrl}><code>Del[]</code></a>`}` |
|
||||
| `session.messages({ path })` | Liste meldinger i en økt | Returnerer `{ info: `<a href={typesUrl}><code>Message</code></a>`, parts: `<a href={typesUrl}><code>Part[]</code></a>`}[]` |
|
||||
| `session.message({ path })` | Få meldingsdetaljer | Returnerer `{ info: `<a href={typesUrl}><code>Message</code></a>`, parts: `<a href={typesUrl}><code>Part[]</code></a>`}` |
|
||||
| `session.prompt({ path, body })` | Send melding | `body.noReply: true` returnerer UserMessage (kun kontekst). Standard returnerer <a href={typesUrl}><code>AssistantMessage</code></a> med AI svar |
|
||||
| `session.command({ path, body })` | Send kommando til økt | Returnerer `{ info: `<a href={typesUrl}><code>AssistantMessage</code></a>`, parts: `<a href={typesUrl}><code>Del[]</code></a>`}` |
|
||||
| `session.command({ path, body })` | Send kommando til økt | Returnerer `{ info: `<a href={typesUrl}><code>AssistantMessage</code></a>`, parts: `<a href={typesUrl}><code>Part[]</code></a>`}` |
|
||||
| `session.shell({ path, body })` | Kjør en shell-kommando | Returnerer <a href={typesUrl}><code>AssistantMessage</code></a> |
|
||||
| `session.revert({ path, body })` | Tilbakestill en melding | Returnerer <a href={typesUrl}><code>Session</code></a> |
|
||||
| `session.unrevert({ path })` | Gjenopprett tilbakestilte meldinger | Returnerer <a href={typesUrl}><code>Session</code></a> |
|
||||
|
||||
@@ -50,7 +50,7 @@ Når du kjører `opencode` starter den en TUI og en server. Der TUI er
|
||||
klient som snakker med serveren. Serveren viser en OpenAPI 3.1-spesifikasjon
|
||||
endepunkt. Dette endepunktet brukes også til å generere en [SDK](/docs/sdk).
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
Bruk opencode-serveren til å samhandle med opencode programmatisk.
|
||||
:::
|
||||
|
||||
@@ -128,7 +128,7 @@ OpenCode-serveren viser følgende APIer.
|
||||
| ------- | ------------------- | -------------------------------------- | ---------------------------------------------------------------------------------------- |
|
||||
| `GET` | `/config` | Få konfigurasjonsinformasjon | <a href={typesUrl}><code>Config</code></a> |
|
||||
| `PATCH` | `/config` | Oppdater konfigurasjon | <a href={typesUrl}><code>Config</code></a> |
|
||||
| `GET` | `/config/providers` | Liste leverandører og standardmodeller | `{ providers: `<a href={typesUrl}>Tilbyder[]</a>`, default: { [key: string]: string } }` |
|
||||
| `GET` | `/config/providers` | Liste leverandører og standardmodeller | `{ providers: `<a href={typesUrl}>Provider[]</a>`, default: { [key: string]: string } }` |
|
||||
|
||||
---
|
||||
|
||||
@@ -136,7 +136,7 @@ OpenCode-serveren viser følgende APIer.
|
||||
|
||||
| Metode | Sti | Beskrivelse | Svar |
|
||||
| ------ | -------------------------------- | ----------------------------------------------- | ----------------------------------------------------------------------------------- |
|
||||
| `GET` | `/provider` | Liste alle leverandører | `{ all: `<a href={typesUrl}>Tilbyder[]</a>`, default: {...}, connected: string[] }` |
|
||||
| `GET` | `/provider` | Liste alle leverandører | `{ all: `<a href={typesUrl}>Provider[]</a>`, default: {...}, connected: string[] }` |
|
||||
| `GET` | `/provider/auth` | Få leverandørautentiseringsmetoder | `{ [providerID: string]: `<a href={typesUrl}>ProviderAuthMethod[]</a>` }` |
|
||||
| `POST` | `/provider/{id}/oauth/authorize` | Autoriser en leverandør ved å bruke OAuth | <a href={typesUrl}><code>ProviderAuthAuthorization</code></a> |
|
||||
| `POST` | `/provider/{id}/oauth/callback` | Håndtere OAuth-tilbakeringing for en leverandør | `boolean` |
|
||||
@@ -174,7 +174,7 @@ OpenCode-serveren viser følgende APIer.
|
||||
| ------ | --------------------------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `GET` | `/session/:id/message` | Liste meldinger i en økt | spørring: `limit?`, returnerer `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Part[]</a>`}[]` |
|
||||
| `POST` | `/session/:id/message` | Send en melding og vent på svar | body: `{ messageID?, model?, agent?, noReply?, system?, tools?, parts }`, returnerer `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Part[]</a>`}` |
|
||||
| `GET` | `/session/:id/message/:messageID` | Få meldingsdetaljer | Returnerer `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Del[]</a>`}` |
|
||||
| `GET` | `/session/:id/message/:messageID` | Få meldingsdetaljer | Returnerer `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Part[]</a>`}` |
|
||||
| `POST` | `/session/:id/prompt_async` | Send en melding asynkront (ingen vent) | body: samme som `/session/:id/message`, returnerer `204 No Content` |
|
||||
| `POST` | `/session/:id/command` | Utfør en skråstrek-kommando | body: `{ messageID?, agent?, model?, command, arguments }`, returnerer `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Part[]</a>`}` |
|
||||
| `POST` | `/session/:id/shell` | Kjør en shell-kommando | body: `{ agent, model?, command }`, returnerer `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Part[]</a>`}` |
|
||||
|
||||
@@ -314,7 +314,7 @@ Utfører nettsøk med Exa AI for å finne relevant informasjon på nettet. Nytti
|
||||
|
||||
Ingen API-nøkkel kreves — verktøyet kobles direkte til Exa AIs vertsbaserte MCP-tjeneste uten autentisering.
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
Bruk `websearch` når du trenger å finne informasjon (oppdagelse), og `webfetch` når du trenger å hente innhold fra en bestemt URL (henting).
|
||||
:::
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ Give me a quick summary of the codebase.
|
||||
|
||||
Du kan referere til filer i meldingene dine ved å bruke `@`. Dette gjør et uklar filsøk i gjeldende arbeidskatalog.
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
Du kan også bruke `@` til å referere til filer i meldingene dine.
|
||||
:::
|
||||
|
||||
@@ -191,7 +191,7 @@ Start en ny økt. _Alias_: `/clear`
|
||||
|
||||
Gjenta en tidligere angret melding. Kun tilgjengelig etter bruk av `/undo`.
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
Eventuelle filendringer vil også bli gjenopprettet.
|
||||
:::
|
||||
|
||||
@@ -260,7 +260,7 @@ Denne kommandoen kontrollerer bare om tenkeblokker **vises** - den aktiverer ell
|
||||
|
||||
Angre siste melding i samtalen. Fjerner den siste brukermeldingen, alle påfølgende svar og eventuelle filendringer.
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
Eventuelle filendringer vil også bli tilbakestilt.
|
||||
:::
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ Det er et stort antall modeller der ute, men bare noen få av dem
|
||||
disse modellene fungerer godt som kodeagenter. I tillegg er de fleste tilbydere
|
||||
konfigurert veldig annerledes; slik at du får veldig forskjellig ytelse og kvalitet.
|
||||
|
||||
:::tupp
|
||||
:::tip
|
||||
Vi testet en utvalgt gruppe modeller og leverandører som fungerer godt med OpenCode.
|
||||
:::
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ opencode [project]
|
||||
| ------------ | ---- | ------------------------------------------------- |
|
||||
| `--continue` | `-c` | Setzen Sie die letzte Sitzung fort |
|
||||
| `--session` | `-s` | Sitzung ID zum Fortfahren |
|
||||
| `--fork` | | Sitzung beim Fortsetzen verzweigen (mit `--continue` oder `--session`) |
|
||||
| `--prompt` | | Zur Verwendung auffordern |
|
||||
| `--model` | `-m` | Zu verwendendes Modell in der Form provider/model |
|
||||
| `--agent` | | Zu verwendender Agent |
|
||||
@@ -335,10 +336,11 @@ opencode run --attach http://localhost:4096 "Explain async/await in JavaScript"
|
||||
#### Flaggen
|
||||
|
||||
| Flagge | Kurz | Beschreibung |
|
||||
| ------------ | ---- | --------------------------------------------------------------------------------------------------- | --------- |
|
||||
| `--command` | | Der auszuführende Befehl: Nachricht für args | verwenden |
|
||||
| ------------ | ---- | --------------------------------------------------------------------------------------------------- |
|
||||
| `--command` | | Der auszuführende Befehl, Nachricht für Argumente verwenden |
|
||||
| `--continue` | `-c` | Setzen Sie die letzte Sitzung fort |
|
||||
| `--session` | `-s` | Sitzung ID zum Fortfahren |
|
||||
| `--fork` | | Verzweigen Sie die Sitzung beim Fortsetzen (mit `--continue` oder `--session`) verwenden |
|
||||
| `--share` | | Teilen Sie die Sitzung |
|
||||
| `--model` | `-m` | Zu verwendendes Modell in der Form provider/model |
|
||||
| `--agent` | | Zu verwendender Agent |
|
||||
@@ -362,12 +364,12 @@ Dadurch wird ein HTTP-Server gestartet, der API-Zugriff auf Opencode-Funktionali
|
||||
|
||||
#### Flaggen
|
||||
|
||||
| Flagge | Beschreibung |
|
||||
| ------------ | --------------------------------------- | -------- |
|
||||
| `--port` | Port zum Abhören |
|
||||
| `--hostname` | Hostname zum Abhören |
|
||||
| `--mdns` | mDNS-Erkennung aktivieren |
|
||||
| `--cors` | Zusätzliche Browserursprung(e), um CORS | zulassen |
|
||||
| Flagge | Beschreibung |
|
||||
| ------------ | -------------------------------------------------- |
|
||||
| `--port` | Port zum Abhören |
|
||||
| `--hostname` | Hostname zum Abhören |
|
||||
| `--mdns` | mDNS-Erkennung aktivieren |
|
||||
| `--cors` | Zusätzliche Browserursprung(e), um CORS zuzulassen |
|
||||
|
||||
---
|
||||
|
||||
@@ -408,12 +410,12 @@ opencode stats
|
||||
|
||||
#### Flaggen
|
||||
|
||||
| Flagge | Beschreibung |
|
||||
| ----------- | ---------------------------------------------------------------------------------------------------------------- | --- |
|
||||
| `--days` | Statistiken für die letzten N Tage anzeigen (alle Zeiten) |
|
||||
| `--tools` | Anzahl der angebotenen Werkzeuge (alle) |
|
||||
| `--models` | Aufschlüsselung der Modellnutzung anzeigen (standardmäßig ausgeblendet). Übergeben Sie eine Zahl, um das obere N | . |
|
||||
| `--project` | Nach Projekt filtern (alle Projekte, leere Zeichenfolge: aktuelles Projekt) |
|
||||
| Flagge | Beschreibung |
|
||||
| ----------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `--days` | Statistiken für die letzten N Tage anzeigen (alle Zeiten) |
|
||||
| `--tools` | Anzahl der angebotenen Werkzeuge (alle) |
|
||||
| `--models` | Aufschlüsselung der Modellnutzung anzeigen (standardmäßig ausgeblendet). Übergeben Sie eine Zahl, um die obersten N anzuzeigen |
|
||||
| `--project` | Nach Projekt filtern (alle Projekte, leere Zeichenfolge: aktuelles Projekt) |
|
||||
|
||||
---
|
||||
|
||||
@@ -458,12 +460,12 @@ Dadurch wird ein HTTP-Server gestartet und ein Webbrowser geöffnet, um über ei
|
||||
|
||||
#### Flaggen
|
||||
|
||||
| Flagge | Beschreibung |
|
||||
| ------------ | --------------------------------------- | -------- |
|
||||
| `--port` | Port zum Abhören |
|
||||
| `--hostname` | Hostname zum Abhören |
|
||||
| `--mdns` | mDNS-Erkennung aktivieren |
|
||||
| `--cors` | Zusätzliche Browserursprung(e), um CORS | zulassen |
|
||||
| Flagge | Beschreibung |
|
||||
| ------------ | -------------------------------------------------- |
|
||||
| `--port` | Port zum Abhören |
|
||||
| `--hostname` | Hostname zum Abhören |
|
||||
| `--mdns` | mDNS-Erkennung aktivieren |
|
||||
| `--cors` | Zusätzliche Browserursprung(e), um CORS zuzulassen |
|
||||
|
||||
---
|
||||
|
||||
@@ -497,12 +499,12 @@ opencode uninstall
|
||||
|
||||
#### Flaggen
|
||||
|
||||
| Flagge | Kurz | Beschreibung |
|
||||
| --------------- | ---- | --------------------------------------- | ------------ |
|
||||
| `--keep-config` | `-c` | Konfigurationsdateien behalten |
|
||||
| `--keep-data` | `-d` | Sitzungsdaten und Snapshots aufbewahren |
|
||||
| `--dry-run` | | Zeigt, was entfernt werden würde, ohne | zu entfernen |
|
||||
| `--force` | `-f` | Bestätigungsaufforderungen überspringen |
|
||||
| Flagge | Kurz | Beschreibung |
|
||||
| --------------- | ---- | --------------------------------------------------- |
|
||||
| `--keep-config` | `-c` | Konfigurationsdateien behalten |
|
||||
| `--keep-data` | `-d` | Sitzungsdaten und Snapshots aufbewahren |
|
||||
| `--dry-run` | | Zeigt, was entfernt werden würde, ohne zu entfernen |
|
||||
| `--force` | `-f` | Bestätigungsaufforderungen überspringen |
|
||||
|
||||
---
|
||||
|
||||
@@ -528,9 +530,9 @@ opencode upgrade v0.1.48
|
||||
|
||||
#### Flaggen
|
||||
|
||||
| Flagge | Kurz | Beschreibung |
|
||||
| ---------- | ---- | ---------------------------------------------------------------------- |
|
||||
| `--method` | `-m` | Die verwendete Installationsmethode; Curl, NPM, PNPM, Brötchen, Brauen |
|
||||
| Flagge | Kurz | Beschreibung |
|
||||
| ---------- | ---- | --------------------------------------------------------------- |
|
||||
| `--method` | `-m` | Die verwendete Installationsmethode; curl, npm, pnpm, bun, brew |
|
||||
|
||||
---
|
||||
|
||||
@@ -585,10 +587,10 @@ OpenCode kann mithilfe von Umgebungsvariablen konfiguriert werden.
|
||||
Diese Umgebungsvariablen ermöglichen experimentelle Funktionen, die sich ändern oder entfernen können.
|
||||
|
||||
| Variable | Geben Sie | eine Beschreibung |
|
||||
| ----------------------------------------------- | --------------- | ------------------------------------------------------- | ------------ |
|
||||
| ----------------------------------------------- | --------------- | ------------------------------------------------------- |
|
||||
| `OPENCODE_EXPERIMENTAL` | boolescher Wert | Alle experimentellen Funktionen aktivieren |
|
||||
| `OPENCODE_EXPERIMENTAL_ICON_DISCOVERY` | boolescher Wert | Symbolerkennung aktivieren |
|
||||
| `OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT` | boolescher Wert | Kopieren bei Auswahl in TUI | deaktivieren |
|
||||
| `OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT` | boolescher Wert | Kopieren bei Auswahl in TUI deaktivieren |
|
||||
| `OPENCODE_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS` | Zahl | Standard-Timeout für Bash-Befehle in ms |
|
||||
| `OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX` | Zahl | Maximale Ausgabetokens für LLM-Antworten |
|
||||
| `OPENCODE_EXPERIMENTAL_FILEWATCHER` | boolescher Wert | Dateiüberwachung für das gesamte Verzeichnis aktivieren |
|
||||
|
||||
@@ -16,7 +16,7 @@ Sie können sich auch [awesome-opencode](https://github.com/awesome-opencode/awe
|
||||
## Plugins
|
||||
|
||||
| Name | Beschreibung |
|
||||
| --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
|
||||
| --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [opencode-daytona](https://github.com/jamesmurdza/daytona/blob/main/guides/typescript/opencode/README.md) | Führen Sie OpenCode-Sitzungen automatisch in isolierten Daytona-Sandboxes mit Git-Synchronisierung und Live-Vorschauen aus |
|
||||
| [opencode-helicone-session](https://github.com/H2Shami/opencode-helicone-session) | Helicone-Sitzungsheader für die Anforderungsgruppierung automatisch einfügen |
|
||||
| [opencode-type-inject](https://github.com/nick-vi/opencode-type-inject) | TypeScript/Svelte-Typen mit Suchtools automatisch in Dateilesevorgänge einfügen |
|
||||
@@ -30,7 +30,7 @@ Sie können sich auch [awesome-opencode](https://github.com/awesome-opencode/awe
|
||||
| [opencode-pty](https://github.com/shekohex/opencode-pty.git) | Ermöglicht AI-Agenten, Hintergrundprozesse in einem PTY auszuführen und ihnen interaktive Eingaben zu senden. |
|
||||
| [opencode-shell-strategy](https://github.com/JRedeker/opencode-shell-strategy) | Anweisungen für nicht interaktive Shell-Befehle – verhindert Abstürze bei TTY-abhängigen Vorgängen |
|
||||
| [opencode-wakatime](https://github.com/angristan/opencode-wakatime) | Verfolgen Sie die Nutzung von OpenCode mit Wakatime |
|
||||
| [opencode-md-table-formatter](https://github.com/franlol/opencode-md-table-formatter/tree/main) | Von LLMs | erstellte Abschriftentabellen bereinigen |
|
||||
| [opencode-md-table-formatter](https://github.com/franlol/opencode-md-table-formatter/tree/main) | Von LLMs erstellte Abschriftentabellen bereinigen |
|
||||
| [opencode-morph-fast-apply](https://github.com/JRedeker/opencode-morph-fast-apply) | 10x schnellere Codebearbeitung mit Morph Fast Apply API und Lazy-Edit-Markern |
|
||||
| [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) | Hintergrundagenten, vorgefertigte LSP/AST/MCP-Tools, kuratierte Agenten, Claude Code-kompatibel |
|
||||
| [opencode-notificator](https://github.com/panta82/opencode-notificator) | Desktop-Benachrichtigungen und akustische Warnungen für OpenCode-Sitzungen |
|
||||
@@ -53,7 +53,7 @@ Sie können sich auch [awesome-opencode](https://github.com/awesome-opencode/awe
|
||||
## Projects
|
||||
|
||||
| Name | Beschreibung |
|
||||
| ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------- | --------- |
|
||||
| ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------- |
|
||||
| [kimaki](https://github.com/remorses/kimaki) | Discord-Bot zur Steuerung von OpenCode-Sitzungen, basierend auf SDK |
|
||||
| [opencode.nvim](https://github.com/NickvanDyke/opencode.nvim) | Neovim-Plugin für editorfähige Eingabeaufforderungen, basierend auf API |
|
||||
| [portal](https://github.com/hosenur/portal) | Mobile-First-Web UI für OpenCode über Tailscale/VPN |
|
||||
@@ -61,7 +61,7 @@ Sie können sich auch [awesome-opencode](https://github.com/awesome-opencode/awe
|
||||
| [opencode.nvim](https://github.com/sudo-tee/opencode.nvim) | Neovim-Frontend für Opencode – ein terminalbasierter AI-Coding-Agent |
|
||||
| [ai-sdk-provider-opencode-sdk](https://github.com/ben-vargas/ai-sdk-provider-opencode-sdk) | Vercel AI SDK Anbieter für die Verwendung von OpenCode über @opencode-ai/sdk |
|
||||
| [OpenChamber](https://github.com/btriapitsyn/openchamber) | Web-/Desktop-App und VS Code-Erweiterung für OpenCode |
|
||||
| [OpenCode-Obsidian](https://github.com/mtymek/opencode-obsidian) | Obsidian-Plugin, das OpenCode in Obsidians UI | einbettet |
|
||||
| [OpenCode-Obsidian](https://github.com/mtymek/opencode-obsidian) | Obsidian-Plugin, das OpenCode in Obsidians UI einbettet |
|
||||
| [OpenWork](https://github.com/different-ai/openwork) | Eine Open-Source-Alternative zu Claude Cowork, unterstützt von OpenCode |
|
||||
| [ocx](https://github.com/kdcokenny/ocx) | OpenCode Erweiterungsmanager mit portablen, isolierten Profilen. |
|
||||
| [CodeNomad](https://github.com/NeuralNomadsAI/CodeNomad) | Desktop-, Web-, Mobil- und Remote-Client-App für OpenCode |
|
||||
|
||||
@@ -11,32 +11,32 @@ OpenCode formatiert Dateien automatisch, nachdem sie mit sprachspezifischen Form
|
||||
|
||||
OpenCode verfügt über mehrere integrierte Formatierer für gängige Sprachen und Frameworks. Nachfolgend finden Sie eine Liste der Formatierer, unterstützten Dateierweiterungen und benötigten Befehle oder Konfigurationsoptionen.
|
||||
|
||||
| Formatierer | Erweiterungen | Anforderungen |
|
||||
| --------------------- | ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
||||
| gofmt | .go | `gofmt`-Befehl verfügbar |
|
||||
| mischen | .ex, .exs, .eex, .heex, .leex, .neex, .sface | `mix`-Befehl verfügbar |
|
||||
| hübscher | .js, .jsx, .ts, .tsx, .html, .css, .md, .json, .yaml und [more](https://prettier.io/docs/en/index.html) | `prettier`-Abhängigkeit in `package.json` |
|
||||
| Biom | .js, .jsx, .ts, .tsx, .html, .css, .md, .json, .yaml und [more](https://biomejs.dev/) | `biome.json(c)` Konfigurationsdatei |
|
||||
| Zickzack | .zig, .zon | `zig`-Befehl verfügbar |
|
||||
| clang-format | .c, .cpp, .h, .hpp, .ino und [more](https://clang.llvm.org/docs/ClangFormat.html) | `.clang-format` Konfigurationsdatei |
|
||||
| ktlint | .kt, .kts | `ktlint`-Befehl verfügbar |
|
||||
| Halskrause | .py, .pyi | `ruff`-Befehl verfügbar mit config |
|
||||
| rustfmt | .rs | `rustfmt`-Befehl verfügbar |
|
||||
| frachtfmt | .rs | `cargo fmt`-Befehl verfügbar |
|
||||
| UV | .py, .pyi | `uv`-Befehl verfügbar |
|
||||
| rubocop | .rb, .rake, .gemspec, .ru | `rubocop`-Befehl verfügbar |
|
||||
| standardrb | .rb, .rake, .gemspec, .ru | `standardrb`-Befehl verfügbar |
|
||||
| htmlbeautifier | .erb, .html.erb | `htmlbeautifier`-Befehl verfügbar |
|
||||
| Luft | .R | `air`-Befehl verfügbar |
|
||||
| Dart | .dart | `dart`-Befehl verfügbar |
|
||||
| ocamlformat | .ml, .mli | `ocamlformat` Befehl verfügbar und `.ocamlformat` Konfigurationsdatei |
|
||||
| Terraform | .tf, .tfvars | `terraform`-Befehl verfügbar |
|
||||
| Glanz | .glanz | `gleam`-Befehl verfügbar |
|
||||
| nixfmt | .nix | `nixfmt`-Befehl verfügbar |
|
||||
| shfmt | .sh, .bash | `shfmt`-Befehl verfügbar |
|
||||
| Pint | .php | `laravel/pint`-Abhängigkeit in `composer.json` |
|
||||
| oxfmt (Experimentell) | .js, .jsx, .ts, .tsx | `oxfmt`-Abhängigkeit in `package.json` und einer [experimental env variable flag](/docs/cli/#experimental) |
|
||||
| Ormolu | .hs | `ormolu`-Befehl verfügbar |
|
||||
| Formatierer | Erweiterungen | Anforderungen |
|
||||
| --------------------- | -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
||||
| gofmt | .go | `gofmt`-Befehl verfügbar |
|
||||
| mix | .ex, .exs, .eex, .heex, .leex, .neex, .sface | `mix`-Befehl verfügbar |
|
||||
| prettier | .js, .jsx, .ts, .tsx, .html, .css, .md, .json, .yaml, und [more](https://prettier.io/docs/en/index.html) | `prettier`-Abhängigkeit in `package.json` |
|
||||
| biome | .js, .jsx, .ts, .tsx, .html, .css, .md, .json, .yaml, und [more](https://biomejs.dev/) | `biome.json(c)` Konfigurationsdatei |
|
||||
| zig | .zig, .zon | `zig`-Befehl verfügbar |
|
||||
| clang-format | .c, .cpp, .h, .hpp, .ino und [more](https://clang.llvm.org/docs/ClangFormat.html) | `.clang-format` Konfigurationsdatei |
|
||||
| ktlint | .kt, .kts | `ktlint`-Befehl verfügbar |
|
||||
| ruff | .py, .pyi | `ruff`-Befehl verfügbar mit config |
|
||||
| rustfmt | .rs | `rustfmt`-Befehl verfügbar |
|
||||
| cargofmt | .rs | `cargo fmt`-Befehl verfügbar |
|
||||
| uv | .py, .pyi | `uv`-Befehl verfügbar |
|
||||
| rubocop | .rb, .rake, .gemspec, .ru | `rubocop`-Befehl verfügbar |
|
||||
| standardrb | .rb, .rake, .gemspec, .ru | `standardrb`-Befehl verfügbar |
|
||||
| htmlbeautifier | .erb, .html.erb | `htmlbeautifier`-Befehl verfügbar |
|
||||
| air | .R | `air`-Befehl verfügbar |
|
||||
| dart | .dart | `dart`-Befehl verfügbar |
|
||||
| ocamlformat | .ml, .mli | `ocamlformat` Befehl verfügbar und `.ocamlformat` Konfigurationsdatei |
|
||||
| terraform | .tf, .tfvars | `terraform`-Befehl verfügbar |
|
||||
| gleam | .gleam | `gleam`-Befehl verfügbar |
|
||||
| nixfmt | .nix | `nixfmt`-Befehl verfügbar |
|
||||
| shfmt | .sh, .bash | `shfmt`-Befehl verfügbar |
|
||||
| pint | .php | `laravel/pint`-Abhängigkeit in `composer.json` |
|
||||
| oxfmt (Experimental) | .js, .jsx, .ts, .tsx | `oxfmt`-Abhängigkeit in `package.json` und einer [experimental env variable flag](/docs/cli/#experimental) |
|
||||
| Ormolu | .hs | `ormolu`-Befehl verfügbar |
|
||||
|
||||
Wenn Ihr Projekt auch `prettier` in Ihrem `package.json` hat, wird OpenCode automatisch verwendet.
|
||||
|
||||
@@ -67,12 +67,12 @@ Sie können Formatierer über den Abschnitt `formatter` in Ihrer OpenCode-Konfig
|
||||
|
||||
Jede Formatierungskonfiguration unterstützt Folgendes:
|
||||
|
||||
| Eigentum | Geben Sie | eine Beschreibung |
|
||||
| ------------- | --------------- | ----------------------------------------------------------- | ------------------------ |
|
||||
| `disabled` | boolescher Wert | Setzen Sie dies auf `true`, um den Formatierer | zu deaktivieren |
|
||||
| `command` | string[] | Der zum Formatieren auszuführende Befehl |
|
||||
| `environment` | Objekt | Umgebungsvariablen, die beim Ausführen des Formatierers | festgelegt werden sollen |
|
||||
| `extensions` | string[] | Dateierweiterungen, die dieser Formatierer verarbeiten soll |
|
||||
| Eigentum | Typ | Beschreibung |
|
||||
| ------------- | --------------- | -------------------------------------------------------------------------------- |
|
||||
| `disabled` | boolescher Wert | Setzen Sie dies auf `true`, um den Formatierer zu deaktivieren |
|
||||
| `command` | string[] | Der zum Formatieren auszuführende Befehl |
|
||||
| `environment` | Objekt | Umgebungsvariablen, die beim Ausführen des Formatierers festgelegt werden sollen |
|
||||
| `extensions` | string[] | Dateierweiterungen, die dieser Formatierer verarbeiten soll |
|
||||
|
||||
Schauen wir uns einige Beispiele an.
|
||||
|
||||
|
||||
@@ -135,14 +135,14 @@ Sie können eine Tastenkombination deaktivieren, indem Sie den Schlüssel mit de
|
||||
Die Eingabeaufforderungseingabe der OpenCode-Desktop-App unterstützt gängige Readline/Emacs-style-Verknüpfungen zum Bearbeiten von Text. Diese sind integriert und derzeit nicht über `opencode.json` konfigurierbar.
|
||||
|
||||
| Verknüpfung | Aktion |
|
||||
| ----------- | ----------------------------------------------------- | ------- |
|
||||
| ----------- | ----------------------------------------------------- |
|
||||
| `ctrl+a` | Zum Anfang der aktuellen Zeile gehen |
|
||||
| `ctrl+e` | Zum Ende der aktuellen Zeile gehen |
|
||||
| `ctrl+b` | Cursor um ein Zeichen zurückbewegen |
|
||||
| `ctrl+f` | Cursor um ein Zeichen vorwärts bewegen |
|
||||
| `alt+b` | Cursor um ein Wort zurückbewegen |
|
||||
| `alt+f` | Bewegen Sie den Cursor ein Wort vorwärts |
|
||||
| `ctrl+d` | Zeichen unter Cursor | löschen |
|
||||
| `ctrl+d` | Zeichen unter dem Cursor löschen |
|
||||
| `ctrl+k` | Bis zum Zeilenende töten |
|
||||
| `ctrl+u` | Bis zum Zeilenanfang töten |
|
||||
| `ctrl+w` | Vorheriges Wort töten |
|
||||
|
||||
@@ -12,18 +12,18 @@ OpenCode lässt sich in Ihr Language Server Protocol (LSP) integrieren, um die I
|
||||
OpenCode verfügt über mehrere integrierte LSP-Server für gängige Sprachen:
|
||||
|
||||
| LSP Server | Erweiterungen | Anforderungen |
|
||||
| ------------------ | ------------------------------------------------------------------- | ------------------------------------------------------------------------- | ----------- |
|
||||
| Astro | .astro | Automatische Installation für Astro-Projekte |
|
||||
| bash | .sh, .bash, .zsh, .ksh | Installiert den Bash-Language-Server | automatisch |
|
||||
| klirrend | .c, .cpp, .cc, .cxx, .c++, .h, .hpp, .hh, .hxx, .h++ | Automatische Installation für C/C++-Projekte |
|
||||
| ------------------ | ------------------------------------------------------------------- | ------------------------------------------------------------------------- |
|
||||
| astro | .astro | Automatische Installation für Astro-Projekte |
|
||||
| bash | .sh, .bash, .zsh, .ksh | Installiert den bash-language-server automatisch |
|
||||
| clangd | .c, .cpp, .cc, .cxx, .c++, .h, .hpp, .hh, .hxx, .h++ | Automatische Installation für C/C++-Projekte |
|
||||
| csharp | .cs | `.NET SDK` installed |
|
||||
| clojure-lsp | .clj, .cljs, .cljc, .edn | `clojure-lsp`-Befehl verfügbar |
|
||||
| Dart | .dart | `dart`-Befehl verfügbar |
|
||||
| dart | .dart | `dart`-Befehl verfügbar |
|
||||
| deno | .ts, .tsx, .js, .jsx, .mjs | `deno`-Befehl verfügbar (automatische Erkennung von deno.json/deno.jsonc) |
|
||||
| Elixier-ls | .ex, .exs | `elixir`-Befehl verfügbar |
|
||||
| elixir-ls | .ex, .exs | `elixir`-Befehl verfügbar |
|
||||
| eslint | .ts, .tsx, .js, .jsx, .mjs, .cjs, .mts, .cts, .vue | `eslint` dependency in project |
|
||||
| fsharp | .fs, .fsi, .fsx, .fsscript | `.NET SDK` installed |
|
||||
| Glanz | .glanz | `gleam`-Befehl verfügbar |
|
||||
| gleam | .gleam | `gleam`-Befehl verfügbar |
|
||||
| gopls | .go | `go`-Befehl verfügbar |
|
||||
| hls | .hs, .lhs | `haskell-language-server-wrapper`-Befehl verfügbar |
|
||||
| jdtls | .java | `Java SDK (version 21+)` installiert |
|
||||
@@ -32,18 +32,18 @@ OpenCode verfügt über mehrere integrierte LSP-Server für gängige Sprachen:
|
||||
| nixd | .nix | `nixd`-Befehl verfügbar |
|
||||
| ocaml-lsp | .ml, .mli | `ocamllsp`-Befehl verfügbar |
|
||||
| oxlint | .ts, .tsx, .js, .jsx, .mjs, .cjs, .mts, .cts, .vue, .astro, .svelte | `oxlint` dependency in project |
|
||||
| PHP Intelepense | .php | Automatische Installation für PHP-Projekte |
|
||||
| Prisma | .prisma | `prisma`-Befehl verfügbar |
|
||||
| php intelephense | .php | Automatische Installation für PHP-Projekte |
|
||||
| prisma | .prisma | `prisma`-Befehl verfügbar |
|
||||
| pyright | .py, .pyi | `pyright` dependency installed |
|
||||
| ruby-lsp (rubocop) | .rb, .rake, .gemspec, .ru | Befehle `ruby` und `gem` verfügbar |
|
||||
| Rost | .rs | `rust-analyzer`-Befehl verfügbar |
|
||||
| rust | .rs | `rust-analyzer`-Befehl verfügbar |
|
||||
| sourcekit-lsp | .swift, .objc, .objcpp | `swift` installed (`xcode` on macOS) |
|
||||
| schlank | .svelte | Automatische Installation für Svelte-Projekte |
|
||||
| Terraform | .tf, .tfvars | Automatische Installation von GitHub-Releases |
|
||||
| winziger Nebel | .typ, .typc | Automatische Installation von GitHub-Releases |
|
||||
| svelte | .svelte | Automatische Installation für Svelte-Projekte |
|
||||
| terraform | .tf, .tfvars | Automatische Installation von GitHub-Releases |
|
||||
| tinymist | .typ, .typc | Automatische Installation von GitHub-Releases |
|
||||
| typescript | .ts, .tsx, .js, .jsx, .mjs, .cjs, .mts, .cts | `typescript` dependency in project |
|
||||
| vue | .vue | Automatische Installation für Vue-Projekte |
|
||||
| yaml-ls | .yaml, .yml | Installiert den Red Hat Yaml-Language-Server | automatisch |
|
||||
| yaml-ls | .yaml, .yml | Installiert den Red Hat yaml-language-server automatisch |
|
||||
| zls | .zig, .zon | `zig`-Befehl verfügbar |
|
||||
|
||||
LSP-Server werden automatisch aktiviert, wenn eine der oben genannten Dateierweiterungen erkannt wird und die Anforderungen erfüllt sind.
|
||||
|
||||
@@ -266,12 +266,12 @@ Wenn Sie automatisches OAuth für einen Server deaktivieren möchten (e.g., für
|
||||
|
||||
#### OAuth-Optionen
|
||||
|
||||
| Option | Geben Sie | ein Beschreibung |
|
||||
| -------------- | ---------------- | --------------------------------------------------------------------------------------------- |
|
||||
| `oauth` | Objekt \| falsch | OAuth-Konfigurationsobjekt oder `false`, um die automatische OAuth-Erkennung zu deaktivieren. |
|
||||
| `clientId` | Zeichenfolge | OAuth-Client ID. Wenn nicht angegeben, wird eine dynamische Client-Registrierung versucht. |
|
||||
| `clientSecret` | Zeichenfolge | OAuth-Client-Geheimnis, falls vom Autorisierungsserver erforderlich. |
|
||||
| `scope` | Zeichenfolge | OAuth-Bereiche, die während der Autorisierung angefordert werden sollen. |
|
||||
| Option | Geben Sie | ein Beschreibung |
|
||||
| -------------- | --------------- | --------------------------------------------------------------------------------------------- |
|
||||
| `oauth` | Object \| false | OAuth-Konfigurationsobjekt oder `false`, um die automatische OAuth-Erkennung zu deaktivieren. |
|
||||
| `clientId` | Zeichenfolge | OAuth-Client ID. Wenn nicht angegeben, wird eine dynamische Client-Registrierung versucht. |
|
||||
| `clientSecret` | Zeichenfolge | OAuth-Client-Geheimnis, falls vom Autorisierungsserver erforderlich. |
|
||||
| `scope` | Zeichenfolge | OAuth-Bereiche, die während der Autorisierung angefordert werden sollen. |
|
||||
|
||||
#### Debugging
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ description: Utilice OpenCode en cualquier editor compatible con ACP.
|
||||
|
||||
OpenCode admite el [Protocolo de cliente de agente](https://agentclientprotocol.com) o (ACP), lo que le permite usarlo directamente en editores e IDE compatibles.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Para obtener una lista de editores y herramientas compatibles con ACP, consulte el [informe de progreso de ACP](https://zed.dev/blog/acp-progress-report#available-now).
|
||||
:::
|
||||
|
||||
@@ -144,7 +144,7 @@ Si necesita pasar variables de entorno (como `OPENCODE_API_KEY`), consulte [Conf
|
||||
|
||||
OpenCode funciona igual a través de ACP que en la terminal. Todas las funciones son compatibles:
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Algunos comandos de barra integrados como `/undo` y `/redo` no son compatibles actualmente.
|
||||
:::
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ description: Configurar y utilizar agentes especializados.
|
||||
|
||||
Los agentes son asistentes de IA especializados que se pueden configurar para tareas y flujos de trabajo específicos. Le permiten crear herramientas enfocadas con indicaciones, modelos y acceso a herramientas personalizados.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Utilice el agente del plan para analizar el código y revisar sugerencias sin realizar ningún cambio en el código.
|
||||
:::
|
||||
|
||||
@@ -23,7 +23,7 @@ Hay dos tipos de agentes en OpenCode; agentes primarios y subagentes.
|
||||
|
||||
Los agentes primarios son los asistentes principales con los que interactúas directamente. Puede recorrerlos usando la tecla **Tab** o la combinación de teclas `switch_agent` configurada. Estos agentes manejan su conversación principal. El acceso a las herramientas se configura mediante permisos; por ejemplo, Build tiene todas las herramientas habilitadas mientras que Plan está restringido.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Puede utilizar la tecla **Tab** para cambiar entre agentes principales durante una sesión.
|
||||
:::
|
||||
|
||||
@@ -301,7 +301,7 @@ Si no se establece esto, el agente continuará iterando hasta que el modelo deci
|
||||
|
||||
Cuando se alcanza el límite, el agente recibe un mensaje especial del sistema que le indica que responda con un resumen de su trabajo y las tareas restantes recomendadas.
|
||||
|
||||
:::precaución
|
||||
:::caution
|
||||
El campo heredado `maxSteps` está en desuso. Utilice `steps` en su lugar.
|
||||
:::
|
||||
|
||||
@@ -345,7 +345,7 @@ Esta ruta es relativa a donde se encuentra el archivo de configuración. Entonce
|
||||
|
||||
Utilice la configuración `model` para anular el modelo de este agente. Útil para utilizar diferentes modelos optimizados para diferentes tareas. Por ejemplo, un modelo más rápido de planificación, un modelo más capaz de implementación.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Si no especifica un modelo, los agentes primarios usarán el [modelo configurado globalmente](/docs/config#models), mientras que los subagentes usarán el modelo del agente primario que invocó al subagente.
|
||||
:::
|
||||
|
||||
@@ -385,7 +385,7 @@ Controle qué herramientas están disponibles en este agente con la configuraci
|
||||
}
|
||||
```
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
La configuración específica del agente anula la configuración global.
|
||||
:::
|
||||
|
||||
@@ -557,7 +557,7 @@ Oculte un subagente del menú de autocompletar `@` con `hidden: true`. Útil par
|
||||
|
||||
Esto sólo afecta la visibilidad del usuario en el menú de autocompletar. El modelo aún puede invocar agentes ocultos a través de la herramienta Tarea si los permisos lo permiten.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Sólo aplica para agentes `mode: subagent`.
|
||||
:::
|
||||
|
||||
@@ -586,11 +586,11 @@ Controle qué subagentes puede invocar un agente a través de la herramienta Tar
|
||||
|
||||
Cuando se establece en `deny`, el subagente se elimina por completo de la descripción de la herramienta Tarea, por lo que el modelo no intentará invocarlo.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Las reglas se evalúan en orden y la **última regla coincidente gana**. En el ejemplo anterior, `orchestrator-planner` coincide con `*` (denegar) y `orchestrator-*` (permitir), pero como `orchestrator-*` viene después de `*`, el resultado es `allow`.
|
||||
:::
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Los usuarios siempre pueden invocar cualquier subagente directamente a través del menú de autocompletar `@`, incluso si los permisos de tarea del agente lo niegan.
|
||||
:::
|
||||
|
||||
@@ -656,7 +656,7 @@ Por ejemplo, con los modelos de razonamiento de OpenAI, puedes controlar el esfu
|
||||
|
||||
Estas opciones adicionales son específicas del modelo y del proveedor. Consulte la documentación de su proveedor para conocer los parámetros disponibles.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Ejecute `opencode models` para ver una lista de los modelos disponibles.
|
||||
:::
|
||||
|
||||
@@ -696,7 +696,7 @@ A continuación se muestran algunos casos de uso comunes para diferentes agentes
|
||||
|
||||
A continuación se muestran algunos agentes de ejemplo que pueden resultarle útiles.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
¿Tiene un agente que le gustaría compartir? [Enviar un PR](https://github.com/anomalyco/opencode).
|
||||
:::
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ opencode [project]
|
||||
| ------------ | ----- | ---------------------------------------------- |
|
||||
| `--continue` | `-c` | Continuar la última sesión |
|
||||
| `--session` | `-s` | ID de sesión para continuar |
|
||||
| `--fork` | | Bifurcar la sesión al continuar (usar con `--continue` o `--session`) |
|
||||
| `--prompt` | | Aviso de uso |
|
||||
| `--model` | `-m` | Modelo a utilizar en forma de proveedor/modelo |
|
||||
| `--agent` | | Agente a utilizar |
|
||||
@@ -339,6 +340,7 @@ opencode run --attach http://localhost:4096 "Explain async/await in JavaScript"
|
||||
| `--command` | | El comando a ejecutar, use mensaje para args |
|
||||
| `--continue` | `-c` | Continuar la última sesión |
|
||||
| `--session` | `-s` | ID de sesión para continuar |
|
||||
| `--fork` | | Bifurcar la sesión al continuar (usar con `--continue` o `--session`) |
|
||||
| `--share` | | Comparte la sesión |
|
||||
| `--model` | `-m` | Modelo a utilizar en forma de proveedor/modelo |
|
||||
| `--agent` | | Agente a utilizar |
|
||||
|
||||
@@ -316,7 +316,7 @@ Esta es una opción de configuración **opcional**.
|
||||
|
||||
opencode incluye varios comandos integrados como `/init`, `/undo`, `/redo`, `/share`, `/help`; [más información](/docs/tui#commands).
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Los comandos personalizados pueden anular los comandos integrados.
|
||||
:::
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ OpenCode admite los formatos **JSON** y **JSONC** (JSON con comentarios).
|
||||
Puedes colocar tu configuración en un par de ubicaciones diferentes y tienen un
|
||||
diferente orden de precedencia.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Los archivos de configuración se **fusionan**, no se reemplazan.
|
||||
:::
|
||||
|
||||
@@ -51,7 +51,7 @@ Las fuentes de configuración se cargan en este orden (las fuentes posteriores a
|
||||
|
||||
Esto significa que las configuraciones del proyecto pueden anular los valores predeterminados globales y las configuraciones globales pueden anular los valores predeterminados de la organización remota.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Los directorios `.opencode` y `~/.config/opencode` usan **nombres en plural** para los subdirectorios: `agents/`, `commands/`, `modes/`, `plugins/`, `skills/`, `tools/` y `themes/`. También se admiten nombres singulares (por ejemplo, `agent/`) para compatibilidad con versiones anteriores.
|
||||
:::
|
||||
|
||||
@@ -105,7 +105,7 @@ La configuración global anula los valores predeterminados de la organización r
|
||||
|
||||
Agregue `opencode.json` en la raíz de su proyecto. La configuración del proyecto tiene la mayor prioridad entre los archivos de configuración estándar: anula las configuraciones globales y remotas.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Coloque la configuración específica del proyecto en la raíz de su proyecto.
|
||||
:::
|
||||
|
||||
@@ -291,7 +291,7 @@ Amazon Bedrock admite la configuración específica de AWS:
|
||||
- `profile` - AWS perfil con nombre de `~/.aws/credentials` (el valor predeterminado es `AWS_PROFILE` var env)
|
||||
- `endpoint`: URL de punto de enlace personalizada para puntos de enlace de VPC. Este es un alias para la opción genérica `baseURL` que utiliza terminología específica de AWS. Si se especifican ambos, `endpoint` tiene prioridad.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Los tokens de portador (`AWS_BEARER_TOKEN_BEDROCK` o `/connect`) tienen prioridad sobre la autenticación basada en perfil. Consulte [precedencia de autenticación](/docs/providers#authentication-precedence) para obtener más detalles.
|
||||
:::
|
||||
|
||||
@@ -576,7 +576,7 @@ Puede deshabilitar proveedores que se cargan automáticamente a través de la op
|
||||
}
|
||||
```
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
El `disabled_providers` tiene prioridad sobre `enabled_providers`.
|
||||
:::
|
||||
|
||||
@@ -601,7 +601,7 @@ Puede especificar una lista de proveedores permitidos a través de la opción `e
|
||||
|
||||
Esto es útil cuando desea restringir OpenCode para que utilice únicamente proveedores específicos en lugar de deshabilitarlos uno por uno.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
El `disabled_providers` tiene prioridad sobre `enabled_providers`.
|
||||
:::
|
||||
|
||||
@@ -620,7 +620,7 @@ La clave `experimental` contiene opciones que se encuentran en desarrollo activo
|
||||
}
|
||||
```
|
||||
|
||||
:::precaución
|
||||
:::caution
|
||||
Las opciones experimentales no son estables. Pueden cambiar o eliminarse sin previo aviso.
|
||||
:::
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ title: Herramientas personalizadas
|
||||
description: Cree herramientas que LLM pueda llamar en opencode.
|
||||
---
|
||||
|
||||
Las herramientas personalizadas son funciones que usted crea y que el LLM puede llamar durante las conversaciones. Trabajan junto con las [herramientas integradas] (./tools) de opencode como `read`, `write` y `bash`.
|
||||
Las herramientas personalizadas son funciones que usted crea y que el LLM puede llamar durante las conversaciones. Trabajan junto con las [herramientas integradas](/docs/tools) de opencode como `read`, `write` y `bash`.
|
||||
|
||||
---
|
||||
|
||||
@@ -81,7 +81,7 @@ Esto crea dos herramientas: `math_add` y `math_multiply`.
|
||||
|
||||
### Argumentos
|
||||
|
||||
Puedes usar `tool.schema`, que es simplemente [Zod](/docs/tools), para definir tipos de argumentos.
|
||||
Puedes usar `tool.schema`, que es simplemente [Zod](https://zod.dev), para definir tipos de argumentos.
|
||||
|
||||
```ts "tool.schema"
|
||||
args: {
|
||||
@@ -167,4 +167,4 @@ export default tool({
|
||||
})
|
||||
```
|
||||
|
||||
Aquí estamos usando la utilidad [`Bun.$`](https://zod.dev) para ejecutar el script Python.
|
||||
Aquí estamos usando la utilidad [`Bun.$`](https://bun.com/docs/runtime/shell) para ejecutar el script Python.
|
||||
|
||||
@@ -5,7 +5,7 @@ description: Proyectos e integraciones construidas con OpenCode.
|
||||
|
||||
Una colección de proyectos comunitarios construidos en OpenCode.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
¿Quieres agregar tu proyecto relacionado con OpenCode a esta lista? Envíe un PR.
|
||||
:::
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ export const email = `mailto:${config.email}`
|
||||
|
||||
OpenCode Enterprise es para organizaciones que desean garantizar que su código y sus datos nunca abandonen su infraestructura. Puede hacerlo mediante el uso de una configuración centralizada que se integra con su SSO y su puerta de enlace AI interna.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
OpenCode no almacena ningún código ni datos de contexto.
|
||||
:::
|
||||
|
||||
@@ -154,7 +154,7 @@ npm login --registry=https://your-company.jfrog.io/api/npm/npm-virtual/
|
||||
Esto crea `~/.npmrc` con detalles de autenticación. OpenCode automáticamente
|
||||
recoge esto.
|
||||
|
||||
:::precaución
|
||||
:::caution
|
||||
Debe iniciar sesión en el registro privado antes de ejecutar OpenCode.
|
||||
:::
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ Mencione `@opencode` en un comentario y OpenCode ejecutará tareas dentro de su
|
||||
|
||||
OpenCode se ejecuta en su canalización de CI/CD GitLab. Esto es lo que necesitará para configurarlo:
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Consulte los [**GitLab documentos**](https://docs.gitlab.com/user/duo_agent_platform/agent_assistant/) para obtener instrucciones actualizadas.
|
||||
:::
|
||||
|
||||
@@ -160,7 +160,7 @@ Puede consultar los [GitLab CLI documentos de los agentes](https://docs.gitlab.c
|
||||
|
||||
A continuación se muestran algunos ejemplos de cómo puede utilizar OpenCode en GitLab.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Puede configurarlo para utilizar una frase de activación diferente a `@opencode`.
|
||||
:::
|
||||
|
||||
|
||||
@@ -182,7 +182,7 @@ A continuación, inicialice OpenCode para el proyecto ejecutando el siguiente co
|
||||
Esto hará que OpenCode analice su proyecto y cree un archivo `AGENTS.md` en
|
||||
la raíz del proyecto.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Debes enviar el archivo `AGENTS.md` de tu proyecto a Git.
|
||||
:::
|
||||
|
||||
@@ -205,7 +205,7 @@ ayuda.
|
||||
|
||||
Puede pedirle a OpenCode que le explique el código base.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Utilice la tecla `@` para realizar una búsqueda aproximada de archivos en el proyecto.
|
||||
:::
|
||||
|
||||
@@ -321,7 +321,7 @@ Can you refactor the function in @packages/functions/src/api/index.ts?
|
||||
|
||||
Desde aquí puedes modificar el mensaje y pedirle a OpenCode que vuelva a intentarlo.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Puede ejecutar `/undo` varias veces para deshacer varios cambios.
|
||||
:::
|
||||
|
||||
@@ -336,7 +336,7 @@ O **puedes rehacer** los cambios usando el comando `/redo`.
|
||||
## Compartir
|
||||
|
||||
Las conversaciones que tengas con OpenCode pueden ser [compartidas con tu
|
||||
equipo](/docs/compartir).
|
||||
equipo](/docs/share).
|
||||
|
||||
```bash frame="none"
|
||||
/share
|
||||
@@ -344,7 +344,7 @@ equipo](/docs/compartir).
|
||||
|
||||
Esto creará un enlace a la conversación actual y lo copiará en su portapapeles.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Las conversaciones no se comparten de forma predeterminada.
|
||||
:::
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ OpenCode viene con varios servidores LSP integrados para idiomas populares:
|
||||
|
||||
Los servidores LSP se habilitan automáticamente cuando se detecta una de las extensiones de archivo anteriores y se cumplen los requisitos.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Puede deshabilitar las descargas automáticas del servidor LSP configurando la variable de entorno `OPENCODE_DISABLE_LSP_DOWNLOAD` en `true`.
|
||||
:::
|
||||
|
||||
@@ -126,7 +126,7 @@ Utilice la propiedad `initialization` para pasar opciones de inicialización al
|
||||
}
|
||||
```
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Las opciones de inicialización varían según el servidor LSP. Consulte la documentación de su servidor LSP para conocer las opciones disponibles.
|
||||
:::
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ Una vez agregadas, las herramientas MCP están disponibles automáticamente para
|
||||
|
||||
Cuando utiliza un servidor MCP, se suma al contexto. Esto puede acumularse rápidamente si tiene muchas herramientas. Por lo que recomendamos tener cuidado con qué servidores MCP utiliza.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Los servidores MCP se agregan a su contexto, por lo que debe tener cuidado con cuáles habilita.
|
||||
:::
|
||||
|
||||
@@ -383,7 +383,7 @@ El patrón global utiliza patrones globales simples de expresiones regulares:
|
||||
- `?` coincide exactamente con un carácter
|
||||
- Todos los demás caracteres coinciden literalmente
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Las herramientas del servidor MCP están registradas con el nombre del servidor como prefijo, por lo que para deshabilitar todas las herramientas para un servidor simplemente use:
|
||||
|
||||
```
|
||||
|
||||
@@ -29,7 +29,7 @@ Una vez que hayas configurado tu proveedor podrás seleccionar el modelo que des
|
||||
|
||||
Hay muchos modelos disponibles y cada semana salen nuevos modelos.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Considere utilizar uno de los modelos que recomendamos.
|
||||
:::
|
||||
|
||||
@@ -165,7 +165,7 @@ Varía según el modelo, pero aproximadamente:
|
||||
- `low` - Menor esfuerzo/presupuesto simbólico
|
||||
- `high` - Mayor esfuerzo/presupuesto simbólico
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Esta lista no es exhaustiva. Muchos otros proveedores también tienen valores predeterminados integrados.
|
||||
:::
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ title: Modos
|
||||
description: Diferentes modos para diferentes casos de uso.
|
||||
---
|
||||
|
||||
:::precaución
|
||||
:::caution
|
||||
Los modos ahora se configuran a través de la opción `agent` en la configuración opencode. El
|
||||
La opción `mode` ahora está en desuso. [Más información](/docs/agents).
|
||||
:::
|
||||
|
||||
@@ -22,7 +22,7 @@ export HTTP_PROXY=http://proxy.example.com:8080
|
||||
export NO_PROXY=localhost,127.0.0.1
|
||||
```
|
||||
|
||||
:::precaución
|
||||
:::caution
|
||||
El TUI se comunica con un servidor HTTP local. Debe omitir el proxy para esta conexión para evitar bucles de enrutamiento.
|
||||
:::
|
||||
|
||||
@@ -38,7 +38,7 @@ Si su proxy requiere autenticación básica, incluya las credenciales en la URL.
|
||||
export HTTPS_PROXY=http://username:password@proxy.example.com:8080
|
||||
```
|
||||
|
||||
:::precaución
|
||||
:::caution
|
||||
Evite codificar contraseñas. Utilice variables de entorno o almacenamiento seguro de credenciales.
|
||||
:::
|
||||
|
||||
|
||||
@@ -185,7 +185,7 @@ La herramienta proporciona el conjunto de patrones que `always` aprobaría (por
|
||||
|
||||
Puede anular los permisos por agente. Los permisos del agente se combinan con la configuración global y las reglas del agente tienen prioridad. [Más información](/docs/agents#permissions) sobre los permisos de los agentes.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Consulte la sección [Reglas granulares (sintaxis de objeto)](#granular-rules-object-syntax) anterior para obtener ejemplos de coincidencia de patrones más detallados.
|
||||
:::
|
||||
|
||||
@@ -232,6 +232,6 @@ permission:
|
||||
Only analyze code and suggest changes.
|
||||
```
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Utilice la coincidencia de patrones para comandos con argumentos. `"grep *"` permite `grep pattern file.txt`, mientras que `"grep"` solo lo bloquearía. Los comandos como `git status` funcionan para el comportamiento predeterminado pero requieren permiso explícito (como `"git status *"`) cuando se pasan argumentos.
|
||||
:::
|
||||
|
||||
@@ -234,7 +234,7 @@ export const NotificationPlugin = async ({ project, client, $, directory, worktr
|
||||
|
||||
Estamos usando `osascript` para ejecutar AppleScript en macOS. Aquí lo estamos usando para enviar notificaciones.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Si está utilizando la aplicación de escritorio OpenCode, puede enviar notificaciones del sistema automáticamente cuando una respuesta esté lista o cuando se produzca un error en una sesión.
|
||||
:::
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ Puede personalizar la URL base para cualquier proveedor configurando la opción
|
||||
OpenCode Zen es una lista de modelos proporcionados por el equipo OpenCode que han sido
|
||||
probado y verificado para funcionar bien con OpenCode. [Más información](/docs/zen).
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Si eres nuevo, te recomendamos comenzar con OpenCode Zen.
|
||||
:::
|
||||
|
||||
@@ -89,7 +89,7 @@ Funciona como cualquier otro proveedor en OpenCode y su uso es completamente opc
|
||||
Veamos algunos de los proveedores en detalle. Si desea agregar un proveedor a la
|
||||
lista, no dude en abrir un PR.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
¿No ves un proveedor aquí? Envíe un PR.
|
||||
:::
|
||||
|
||||
@@ -229,7 +229,7 @@ Para usar Amazon Bedrock con OpenCode:
|
||||
/models
|
||||
```
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Para perfiles de inferencia personalizados, utilice el modelo y el nombre del proveedor en la clave y establezca la propiedad `id` en arn. Esto garantiza un almacenamiento en caché correcto:
|
||||
|
||||
```json title="opencode.json"
|
||||
@@ -278,7 +278,7 @@ Para perfiles de inferencia personalizados, utilice el modelo y el nombre del pr
|
||||
/models
|
||||
```
|
||||
|
||||
:::información
|
||||
:::info
|
||||
El uso de su suscripción Claude Pro/Max en OpenCode no está oficialmente respaldado por [Anthropic](https://anthropic.com).
|
||||
:::
|
||||
|
||||
@@ -292,7 +292,7 @@ O si ya tienes una clave API, puedes seleccionar **Ingresar manualmente la clave
|
||||
|
||||
### Azul OpenAI
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Si encuentra errores del tipo "Lo siento, pero no puedo ayudar con esa solicitud", intente cambiar el filtro de contenido de **DefaultV2** a **Default** en su recurso de Azure.
|
||||
:::
|
||||
|
||||
@@ -556,7 +556,7 @@ Cloudflare AI Gateway le permite acceder a modelos de OpenAI, Anthropic, Workers
|
||||
|
||||
### Infraestructura profunda
|
||||
|
||||
1. Dirígete al [panel de Deep Infra] (https://deepinfra.com/dash), crea una cuenta y genera una clave API.
|
||||
1. Dirígete al [panel de Deep Infra](https://deepinfra.com/dash), crea una cuenta y genera una clave API.
|
||||
|
||||
2. Ejecute el comando `/connect` y busque **Deep Infra**.
|
||||
|
||||
@@ -677,7 +677,7 @@ GitLab Duo proporciona chat agente basado en IA con capacidades de llamada de he
|
||||
- **duo-chat-sonnet-4-5** - Rendimiento equilibrado para la mayoría de los flujos de trabajo
|
||||
- **duo-chat-opus-4-5** - Más capaz para análisis complejos
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
También puede especificar la variable de entorno 'GITLAB_TOKEN' si no desea
|
||||
para almacenar el token en el almacenamiento de autenticación opencode.
|
||||
:::
|
||||
@@ -721,7 +721,7 @@ export GITLAB_AI_GATEWAY_URL=https://ai-gateway.company.com
|
||||
export GITLAB_TOKEN=glpat-...
|
||||
```
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Su administrador GitLab debe habilitar lo siguiente:
|
||||
|
||||
1. [Plataforma de agente Duo](https://docs.gitlab.com/user/gitlab_duo/turn_on_off/) para el usuario, grupo o instancia
|
||||
@@ -788,7 +788,7 @@ Este complemento proporciona capacidades integrales de administración del repos
|
||||
|
||||
Para utilizar su suscripción GitHub Copilot con opencode:
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Algunos modelos pueden necesitar un [Pro+
|
||||
suscripción](https://github.com/features/copilot/plans) para usar.
|
||||
|
||||
@@ -853,7 +853,7 @@ Para utilizar Google Vertex AI con OpenCode:
|
||||
export VERTEX_LOCATION=global
|
||||
```
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
La región `global` mejora la disponibilidad y reduce los errores sin costo adicional. Utilice puntos finales regionales (por ejemplo, `us-central1`) para los requisitos de residencia de datos. [Más información](https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-partner-models#regional_and_global_endpoints)
|
||||
:::
|
||||
|
||||
@@ -1222,7 +1222,7 @@ Para usar Kimi K2 de Moonshot AI:
|
||||
|
||||
Puedes configurar opencode para usar modelos locales a través de Ollama.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Ollama puede configurarse automáticamente para OpenCode. Consulte los [documentos de integración de Ollama](https://docs.ollama.com/integrations/opencode) para obtener más detalles.
|
||||
:::
|
||||
|
||||
@@ -1254,7 +1254,7 @@ En este ejemplo:
|
||||
- `options.baseURL` es el punto final del servidor local.
|
||||
- `models` es un mapa de ID de modelo para sus configuraciones. El nombre del modelo se mostrará en la lista de selección de modelos.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Si las llamadas a herramientas no funcionan, intente aumentar `num_ctx` en Ollama. Comience alrededor de 16k - 32k.
|
||||
:::
|
||||
|
||||
@@ -1748,7 +1748,7 @@ Algunas opciones de enrutamiento útiles:
|
||||
|
||||
Para agregar cualquier proveedor **compatible con OpenAI** que no aparezca en el comando `/connect`:
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Puede utilizar cualquier proveedor compatible con OpenAI con opencode. La mayoría de los proveedores de IA modernos ofrecen API compatibles con OpenAI.
|
||||
:::
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ Puede proporcionar instrucciones personalizadas a opencode creando un archivo `A
|
||||
|
||||
Para crear un nuevo archivo `AGENTS.md`, puede ejecutar el comando `/init` en opencode.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Debes enviar el archivo `AGENTS.md` de tu proyecto a Git.
|
||||
:::
|
||||
|
||||
@@ -175,6 +175,6 @@ Este enfoque le permite:
|
||||
- Mantenga AGENTS.md conciso mientras hace referencia a pautas detalladas
|
||||
- Asegúrese de que opencode cargue archivos solo cuando sea necesario para la tarea específica
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Para monorepos o proyectos con estándares compartidos, usar `opencode.json` con patrones globales (como `packages/*/AGENTS.md`) es más fácil de mantener que las instrucciones manuales.
|
||||
:::
|
||||
|
||||
@@ -145,7 +145,7 @@ console.log(health.data.version)
|
||||
| Método | Descripción | Respuesta |
|
||||
| -------------- | ------------------------------------ | -------------------------------------------- |
|
||||
| `app.log()` | Escribe una entrada de registro | `boolean` |
|
||||
| `app.agents()` | Listar todos los agentes disponibles | <a href={typesUrl}><code>Agente[]</code></a> |
|
||||
| `app.agents()` | Listar todos los agentes disponibles | <a href={typesUrl}><code>Agent[]</code></a> |
|
||||
|
||||
---
|
||||
|
||||
@@ -171,8 +171,8 @@ const agents = await client.app.agents()
|
||||
|
||||
| Método | Descripción | Respuesta |
|
||||
| ------------------- | -------------------------- | ---------------------------------------------- |
|
||||
| `project.list()` | Listar todos los proyectos | <a href={typesUrl}><code>Proyecto[]</code></a> |
|
||||
| `project.current()` | Obtener proyecto actual | <a href={typesUrl}><code>Proyecto</code></a> |
|
||||
| `project.list()` | Listar todos los proyectos | <a href={typesUrl}><code>Project[]</code></a> |
|
||||
| `project.current()` | Obtener proyecto actual | <a href={typesUrl}><code>Project</code></a> |
|
||||
|
||||
---
|
||||
|
||||
@@ -192,7 +192,7 @@ const currentProject = await client.project.current()
|
||||
|
||||
| Método | Descripción | Respuesta |
|
||||
| ------------ | ------------------- | ---------------------------------------- |
|
||||
| `path.get()` | Obtener ruta actual | <a href={typesUrl}><code>Ruta</code></a> |
|
||||
| `path.get()` | Obtener ruta actual | <a href={typesUrl}><code>Path</code></a> |
|
||||
|
||||
---
|
||||
|
||||
@@ -209,8 +209,8 @@ const pathInfo = await client.path.get()
|
||||
|
||||
| Método | Descripción | Respuesta |
|
||||
| -------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
|
||||
| `config.get()` | Obtener información de configuración | <a href={typesUrl}><code>Configuración</code></a> |
|
||||
| `config.providers()` | Lista de proveedores y modelos predeterminados | `{ providers: `<a href={typesUrl}><code>Proveedor[]</code></a>`, default: { [key: string]: string } }` |
|
||||
| `config.get()` | Obtener información de configuración | <a href={typesUrl}><code>Config</code></a> |
|
||||
| `config.providers()` | Lista de proveedores y modelos predeterminados | `{ providers: `<a href={typesUrl}><code>Provider[]</code></a>`, default: { [key: string]: string } }` |
|
||||
|
||||
---
|
||||
|
||||
@@ -228,24 +228,24 @@ const { providers, default: defaults } = await client.config.providers()
|
||||
|
||||
| Método | Descripción | Notas |
|
||||
| ---------------------------------------------------------- | --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `session.list()` | Listar sesiones | Devuelve <a href={typesUrl}><code>Sesión[]</code></a> |
|
||||
| `session.get({ path })` | Obtener sesión | Devuelve <a href={typesUrl}><code>Sesión</code></a> |
|
||||
| `session.children({ path })` | Listar sesiones infantiles | Devuelve <a href={typesUrl}><code>Sesión[]</code></a> |
|
||||
| `session.create({ body })` | Crear sesión | Devuelve <a href={typesUrl}><code>Sesión</code></a> |
|
||||
| `session.list()` | Listar sesiones | Devuelve <a href={typesUrl}><code>Session[]</code></a> |
|
||||
| `session.get({ path })` | Obtener sesión | Devuelve <a href={typesUrl}><code>Session</code></a> |
|
||||
| `session.children({ path })` | Listar sesiones infantiles | Devuelve <a href={typesUrl}><code>Session[]</code></a> |
|
||||
| `session.create({ body })` | Crear sesión | Devuelve <a href={typesUrl}><code>Session</code></a> |
|
||||
| `session.delete({ path })` | Eliminar sesión | Devuelve `boolean` |
|
||||
| `session.update({ path, body })` | Actualizar propiedades de sesión | Devuelve <a href={typesUrl}><code>Sesión</code></a> |
|
||||
| `session.update({ path, body })` | Actualizar propiedades de sesión | Devuelve <a href={typesUrl}><code>Session</code></a> |
|
||||
| `session.init({ path, body })` | Analizar aplicación y crear `AGENTS.md` | Devuelve `boolean` |
|
||||
| `session.abort({ path })` | Cancelar una sesión en ejecución | Devuelve `boolean` |
|
||||
| `session.share({ path })` | Compartir sesión | Devuelve <a href={typesUrl}><code>Sesión</code></a> |
|
||||
| `session.unshare({ path })` | Dejar de compartir sesión | Devuelve <a href={typesUrl}><code>Sesión</code></a> |
|
||||
| `session.share({ path })` | Compartir sesión | Devuelve <a href={typesUrl}><code>Session</code></a> |
|
||||
| `session.unshare({ path })` | Dejar de compartir sesión | Devuelve <a href={typesUrl}><code>Session</code></a> |
|
||||
| `session.summarize({ path, body })` | Resumir sesión | Devuelve `boolean` |
|
||||
| `session.messages({ path })` | Listar mensajes en una sesión | Devuelve `{ info: `<a href={typesUrl}><code>Mensaje</code></a>`, parts: `<a href={typesUrl}><code>Parte[]</code></a>`}[]` |
|
||||
| `session.message({ path })` | Obtener detalles del mensaje | Devuelve `{ info: `<a href={typesUrl}><code>Mensaje</code></a>`, parts: `<a href={typesUrl}><code>Parte[]</code></a>`}` |
|
||||
| `session.messages({ path })` | Listar mensajes en una sesión | Devuelve `{ info: `<a href={typesUrl}><code>Message</code></a>`, parts: `<a href={typesUrl}><code>Part[]</code></a>`}[]` |
|
||||
| `session.message({ path })` | Obtener detalles del mensaje | Devuelve `{ info: `<a href={typesUrl}><code>Message</code></a>`, parts: `<a href={typesUrl}><code>Part[]</code></a>`}` |
|
||||
| `session.prompt({ path, body })` | Enviar mensaje rápido | `body.noReply: true` devuelve UserMessage (solo contexto). El valor predeterminado devuelve <a href={typesUrl}><code>AssistantMessage</code></a> con respuesta de IA |
|
||||
| `session.command({ path, body })` | Enviar comando a la sesión | Devuelve `{ info: `<a href={typesUrl}><code>AssistantMessage</code></a>`, parts: `<a href={typesUrl}><code>Parte[]</code></a>`}` |
|
||||
| `session.command({ path, body })` | Enviar comando a la sesión | Devuelve `{ info: `<a href={typesUrl}><code>AssistantMessage</code></a>`, parts: `<a href={typesUrl}><code>Part[]</code></a>`}` |
|
||||
| `session.shell({ path, body })` | Ejecute un comando de shell | Devuelve <a href={typesUrl}><code>AssistantMessage</code></a> |
|
||||
| `session.revert({ path, body })` | Revertir un mensaje | Devuelve <a href={typesUrl}><code>Sesión</code></a> |
|
||||
| `session.unrevert({ path })` | Restaurar mensajes revertidos | Devuelve <a href={typesUrl}><code>Sesión</code></a> |
|
||||
| `session.revert({ path, body })` | Revertir un mensaje | Devuelve <a href={typesUrl}><code>Session</code></a> |
|
||||
| `session.unrevert({ path })` | Restaurar mensajes revertidos | Devuelve <a href={typesUrl}><code>Session</code></a> |
|
||||
| `postSessionByIdPermissionsByPermissionId({ path, body })` | Responder a una solicitud de permiso | Devuelve `boolean` |
|
||||
|
||||
---
|
||||
@@ -287,9 +287,9 @@ await client.session.prompt({
|
||||
| ------------------------- | -------------------------------------------- | -------------------------------------------------------------------------------------------------- |
|
||||
| `find.text({ query })` | Buscar texto en archivos | Matriz de objetos coincidentes con `path`, `lines`, `line_number`, `absolute_offset`, `submatches` |
|
||||
| `find.files({ query })` | Buscar archivos y directorios por nombre | `string[]` (rutas) |
|
||||
| `find.symbols({ query })` | Buscar símbolos del espacio de trabajo | <a href={typesUrl}><code>Símbolo[]</code></a> |
|
||||
| `find.symbols({ query })` | Buscar símbolos del espacio de trabajo | <a href={typesUrl}><code>Symbol[]</code></a> |
|
||||
| `file.read({ query })` | Leer un archivo | `{ type: "raw" \| "patch", content: string }` |
|
||||
| `file.status({ query? })` | Obtener el estado de los archivos rastreados | <a href={typesUrl}><code>Archivo[]</code></a> |
|
||||
| `file.status({ query? })` | Obtener el estado de los archivos rastreados | <a href={typesUrl}><code>File[]</code></a> |
|
||||
|
||||
`find.files` admite algunos campos de consulta opcionales:
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ Cuando ejecuta `opencode`, inicia un TUI y un servidor. Donde el TUI es el
|
||||
Cliente que habla con el servidor. El servidor expone una especificación OpenAPI 3.1
|
||||
punto final. Este punto final también se utiliza para generar un [SDK](/docs/sdk).
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Utilice el servidor opencode para interactuar con opencode mediante programación.
|
||||
:::
|
||||
|
||||
@@ -100,8 +100,8 @@ El servidor opencode expone las siguientes API.
|
||||
|
||||
| Método | Camino | Descripción | Respuesta |
|
||||
| ------ | ------------------ | -------------------------- | ---------------------------------------------- |
|
||||
| `GET` | `/project` | Listar todos los proyectos | <a href={typesUrl}><code>Proyecto[]</code></a> |
|
||||
| `GET` | `/project/current` | Obtener el proyecto actual | <a href={typesUrl}><code>Proyecto</code></a> |
|
||||
| `GET` | `/project` | Listar todos los proyectos | <a href={typesUrl}><code>Project[]</code></a> |
|
||||
| `GET` | `/project/current` | Obtener el proyecto actual | <a href={typesUrl}><code>Project</code></a> |
|
||||
|
||||
---
|
||||
|
||||
@@ -109,7 +109,7 @@ El servidor opencode expone las siguientes API.
|
||||
|
||||
| Método | Camino | Descripción | Respuesta |
|
||||
| ------ | ------- | -------------------------------------------------- | ------------------------------------------- |
|
||||
| `GET` | `/path` | Obtener la ruta actual | <a href={typesUrl}><code>Ruta</code></a> |
|
||||
| `GET` | `/path` | Obtener la ruta actual | <a href={typesUrl}><code>Path</code></a> |
|
||||
| `GET` | `/vcs` | Obtenga información de VCS para el proyecto actual | <a href={typesUrl}><code>VcsInfo</code></a> |
|
||||
|
||||
---
|
||||
@@ -126,8 +126,8 @@ El servidor opencode expone las siguientes API.
|
||||
|
||||
| Método | Camino | Descripción | Respuesta |
|
||||
| ------- | ------------------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
||||
| `GET` | `/config` | Obtener información de configuración | <a href={typesUrl}><code>Configuración</code></a> |
|
||||
| `PATCH` | `/config` | Actualizar configuración | <a href={typesUrl}><code>Configuración</code></a> |
|
||||
| `GET` | `/config` | Obtener información de configuración | <a href={typesUrl}><code>Config</code></a> |
|
||||
| `PATCH` | `/config` | Actualizar configuración | <a href={typesUrl}><code>Config</code></a> |
|
||||
| `GET` | `/config/providers` | Lista de proveedores y modelos predeterminados | `{ providers: `<a href={typesUrl}>Proveedor[]</a>`, default: { [key: string]: string } }` |
|
||||
|
||||
---
|
||||
@@ -147,19 +147,19 @@ El servidor opencode expone las siguientes API.
|
||||
|
||||
| Método | Camino | Descripción | Notas |
|
||||
| -------- | ---------------------------------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------ |
|
||||
| `GET` | `/session` | Listar todas las sesiones | Devuelve <a href={typesUrl}><code>Sesión[]</code></a> |
|
||||
| `POST` | `/session` | Crear una nueva sesión | cuerpo: `{ parentID?, title? }`, devuelve <a href={typesUrl}><code>Sesión</code></a> |
|
||||
| `GET` | `/session/status` | Obtener el estado de la sesión para todas las sesiones | Devuelve `{ [sessionID: string]: `<a href={typesUrl}>Estado de sesión</a>` }` |
|
||||
| `GET` | `/session/:id` | Obtener detalles de la sesión | Devuelve <a href={typesUrl}><code>Sesión</code></a> |
|
||||
| `GET` | `/session` | Listar todas las sesiones | Devuelve <a href={typesUrl}><code>Session[]</code></a> |
|
||||
| `POST` | `/session` | Crear una nueva sesión | cuerpo: `{ parentID?, title? }`, devuelve <a href={typesUrl}><code>Session</code></a> |
|
||||
| `GET` | `/session/status` | Obtener el estado de la sesión para todas las sesiones | Devuelve `{ [sessionID: string]: `<a href={typesUrl}>SessionStatus</a>` }` |
|
||||
| `GET` | `/session/:id` | Obtener detalles de la sesión | Devuelve <a href={typesUrl}><code>Session</code></a> |
|
||||
| `DELETE` | `/session/:id` | Eliminar una sesión y todos sus datos | Devuelve `boolean` |
|
||||
| `PATCH` | `/session/:id` | Actualizar propiedades de sesión | cuerpo: `{ title? }`, devuelve <a href={typesUrl}><code>Sesión</code></a> |
|
||||
| `GET` | `/session/:id/children` | Obtener las sesiones secundarias de una sesión | Devuelve <a href={typesUrl}><code>Sesión[]</code></a> |
|
||||
| `PATCH` | `/session/:id` | Actualizar propiedades de sesión | cuerpo: `{ title? }`, devuelve <a href={typesUrl}><code>Session</code></a> |
|
||||
| `GET` | `/session/:id/children` | Obtener las sesiones secundarias de una sesión | Devuelve <a href={typesUrl}><code>Session[]</code></a> |
|
||||
| `GET` | `/session/:id/todo` | Obtener la lista de tareas pendientes para una sesión | Devuelve <a href={typesUrl}><code>Todo[]</code></a> |
|
||||
| `POST` | `/session/:id/init` | Analizar aplicación y crear `AGENTS.md` | cuerpo: `{ messageID, providerID, modelID }`, devuelve `boolean` |
|
||||
| `POST` | `/session/:id/fork` | Bifurca una sesión existente en un mensaje | cuerpo: `{ messageID? }`, devuelve <a href={typesUrl}><code>Sesión</code></a> |
|
||||
| `POST` | `/session/:id/fork` | Bifurca una sesión existente en un mensaje | cuerpo: `{ messageID? }`, devuelve <a href={typesUrl}><code>Session</code></a> |
|
||||
| `POST` | `/session/:id/abort` | Cancelar una sesión en ejecución | Devuelve `boolean` |
|
||||
| `POST` | `/session/:id/share` | Compartir una sesión | Devuelve <a href={typesUrl}><code>Sesión</code></a> |
|
||||
| `DELETE` | `/session/:id/share` | Dejar de compartir una sesión | Devuelve <a href={typesUrl}><code>Sesión</code></a> |
|
||||
| `POST` | `/session/:id/share` | Compartir una sesión | Devuelve <a href={typesUrl}><code>Session</code></a> |
|
||||
| `DELETE` | `/session/:id/share` | Dejar de compartir una sesión | Devuelve <a href={typesUrl}><code>Session</code></a> |
|
||||
| `GET` | `/session/:id/diff` | Obtenga la diferencia para esta sesión | consulta: `messageID?`, devuelve <a href={typesUrl}><code>FileDiff[]</code></a> |
|
||||
| `POST` | `/session/:id/summarize` | Resumir la sesión | cuerpo: `{ providerID, modelID }`, devuelve `boolean` |
|
||||
| `POST` | `/session/:id/revert` | Revertir un mensaje | cuerpo: `{ messageID, partID? }`, devuelve `boolean` |
|
||||
@@ -185,7 +185,7 @@ El servidor opencode expone las siguientes API.
|
||||
|
||||
| Método | Camino | Descripción | Respuesta |
|
||||
| ------ | ---------- | ------------------------- | --------------------------------------------- |
|
||||
| `GET` | `/command` | Listar todos los comandos | <a href={typesUrl}><code>Comando[]</code></a> |
|
||||
| `GET` | `/command` | Listar todos los comandos | <a href={typesUrl}><code>Command[]</code></a> |
|
||||
|
||||
---
|
||||
|
||||
@@ -195,10 +195,10 @@ El servidor opencode expone las siguientes API.
|
||||
| ------ | ------------------------ | -------------------------------------------- | -------------------------------------------------------------------------------------------------- |
|
||||
| `GET` | `/find?pattern=<pat>` | Buscar texto en archivos | Matriz de objetos coincidentes con `path`, `lines`, `line_number`, `absolute_offset`, `submatches` |
|
||||
| `GET` | `/find/file?query=<q>` | Buscar archivos y directorios por nombre | `string[]` (caminos) |
|
||||
| `GET` | `/find/symbol?query=<q>` | Buscar símbolos del espacio de trabajo | <a href={typesUrl}><code>Símbolo[]</code></a> |
|
||||
| `GET` | `/find/symbol?query=<q>` | Buscar símbolos del espacio de trabajo | <a href={typesUrl}><code>Symbol[]</code></a> |
|
||||
| `GET` | `/file?path=<path>` | Listar archivos y directorios | <a href={typesUrl}><code>FileNode[]</code></a> |
|
||||
| `GET` | `/file/content?path=<p>` | Leer un archivo | <a href={typesUrl}><code>Contenido del archivo</code></a> |
|
||||
| `GET` | `/file/status` | Obtener el estado de los archivos rastreados | <a href={typesUrl}><code>Archivo[]</code></a> |
|
||||
| `GET` | `/file/content?path=<p>` | Leer un archivo | <a href={typesUrl}><code>FileContent</code></a> |
|
||||
| `GET` | `/file/status` | Obtener el estado de los archivos rastreados | <a href={typesUrl}><code>File[]</code></a> |
|
||||
|
||||
#### `/find/file` parámetros de consulta
|
||||
|
||||
@@ -214,8 +214,8 @@ El servidor opencode expone las siguientes API.
|
||||
|
||||
| Método | Camino | Descripción | Respuesta |
|
||||
| ------ | ------------------------------------------- | ---------------------------------------------------- | --------------------------------------------------------- |
|
||||
| `GET` | `/experimental/tool/ids` | Listar todos los ID de herramientas | <a href={typesUrl}><code>ID de herramientas</code></a> |
|
||||
| `GET` | `/experimental/tool?provider=<p>&model=<m>` | Listar herramientas con esquemas JSON para un modelo | <a href={typesUrl}><code>Lista de herramientas</code></a> |
|
||||
| `GET` | `/experimental/tool/ids` | Listar todos los ID de herramientas | <a href={typesUrl}><code>ToolIDs</code></a> |
|
||||
| `GET` | `/experimental/tool?provider=<p>&model=<m>` | Listar herramientas con esquemas JSON para un modelo | <a href={typesUrl}><code>ToolList</code></a> |
|
||||
|
||||
---
|
||||
|
||||
@@ -234,7 +234,7 @@ El servidor opencode expone las siguientes API.
|
||||
|
||||
| Método | Camino | Descripción | Respuesta |
|
||||
| ------ | -------- | ------------------------------------ | -------------------------------------------- |
|
||||
| `GET` | `/agent` | Listar todos los agentes disponibles | <a href={typesUrl}><code>Agente[]</code></a> |
|
||||
| `GET` | `/agent` | Listar todos los agentes disponibles | <a href={typesUrl}><code>Agent[]</code></a> |
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ description: Comparte tus conversaciones OpenCode.
|
||||
|
||||
La función para compartir de OpenCode te permite crear enlaces públicos a tus conversaciones de OpenCode, para que puedas colaborar con compañeros de equipo u obtener ayuda de otros.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Las conversaciones compartidas son de acceso público para cualquier persona que tenga el enlace.
|
||||
:::
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ Cree nuevos archivos o sobrescriba los existentes.
|
||||
|
||||
Utilice esto para permitir que LLM cree nuevos archivos. Sobrescribirá los archivos existentes si ya existen.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
La herramienta `write` está controlada por el permiso `edit`, que cubre todas las modificaciones de archivos (`edit`, `write`, `patch`, `multiedit`).
|
||||
:::
|
||||
|
||||
@@ -172,7 +172,7 @@ Esta herramienta enumera el contenido del directorio. Acepta patrones globales p
|
||||
|
||||
Interactúe con sus servidores LSP configurados para obtener funciones de inteligencia de código como definiciones, referencias, información de desplazamiento y jerarquía de llamadas.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Esta herramienta solo está disponible cuando `OPENCODE_EXPERIMENTAL_LSP_TOOL=true` (o `OPENCODE_EXPERIMENTAL=true`).
|
||||
:::
|
||||
|
||||
@@ -206,7 +206,7 @@ Aplicar parches a los archivos.
|
||||
|
||||
Esta herramienta aplica archivos de parche a su código base. Útil para aplicar diferencias y parches de diversas fuentes.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
La herramienta `patch` está controlada por el permiso `edit`, que cubre todas las modificaciones de archivos (`edit`, `write`, `patch`, `multiedit`).
|
||||
:::
|
||||
|
||||
@@ -242,7 +242,7 @@ Administre listas de tareas pendientes durante las sesiones de codificación.
|
||||
|
||||
Crea y actualiza listas de tareas para realizar un seguimiento del progreso durante operaciones complejas. El LLM usa esto para organizar tareas de varios pasos.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Esta herramienta está deshabilitada para los subagentes de forma predeterminada, pero puede habilitarla manualmente. [Más información](/docs/agents/#permissions)
|
||||
:::
|
||||
|
||||
@@ -263,7 +263,7 @@ Leer listas de tareas pendientes existentes.
|
||||
|
||||
Lee el estado actual de la lista de tareas pendientes. Utilizado por LLM para rastrear qué tareas están pendientes o completadas.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Esta herramienta está deshabilitada para los subagentes de forma predeterminada, pero puede habilitarla manualmente. [Más información](/docs/agents/#permissions)
|
||||
:::
|
||||
|
||||
@@ -290,7 +290,7 @@ Permite que LLM busque y lea páginas web. Útil para buscar documentación o in
|
||||
|
||||
Busque información en la web.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Esta herramienta solo está disponible cuando se utiliza el proveedor OpenCode o cuando la variable de entorno `OPENCODE_ENABLE_EXA` está configurada en cualquier valor verdadero (por ejemplo, `true` o `1`).
|
||||
|
||||
Para habilitar al iniciar OpenCode:
|
||||
@@ -314,7 +314,7 @@ Realiza búsquedas web utilizando Exa AI para encontrar información relevante e
|
||||
|
||||
No se requiere ninguna clave API: la herramienta se conecta directamente al servicio MCP alojado de Exa AI sin autenticación.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Utilice `websearch` cuando necesite encontrar información (descubrimiento) y `webfetch` cuando necesite recuperar contenido de una URL específica (recuperación).
|
||||
:::
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ Give me a quick summary of the codebase.
|
||||
|
||||
Puede hacer referencia a archivos en sus mensajes usando `@`. Esto realiza una búsqueda difusa de archivos en el directorio de trabajo actual.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
También puede utilizar `@` para hacer referencia a archivos en sus mensajes.
|
||||
:::
|
||||
|
||||
@@ -191,7 +191,7 @@ Iniciar una nueva sesión. _Alias_: `/clear`
|
||||
|
||||
Rehacer un mensaje previamente deshecho. Solo disponible después de usar `/undo`.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
También se restaurarán todos los cambios en el archivo.
|
||||
:::
|
||||
|
||||
@@ -246,7 +246,7 @@ Listar temas disponibles.
|
||||
|
||||
Alterna la visibilidad de los bloques de pensamiento/razonamiento en la conversación. Cuando está habilitado, puede ver el proceso de razonamiento del modelo para los modelos que admiten el pensamiento extendido.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Este comando solo controla si se **muestran** los bloques de pensamiento; no habilita ni deshabilita las capacidades de razonamiento del modelo. Para alternar las capacidades de razonamiento reales, use `ctrl+t` para recorrer las variantes del modelo.
|
||||
:::
|
||||
|
||||
@@ -260,7 +260,7 @@ Este comando solo controla si se **muestran** los bloques de pensamiento; no hab
|
||||
|
||||
Deshacer el último mensaje de la conversación. Elimina el mensaje de usuario más reciente, todas las respuestas posteriores y cualquier cambio de archivo.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Cualquier cambio de archivo realizado también se revertirá.
|
||||
:::
|
||||
|
||||
@@ -345,7 +345,7 @@ Las opciones de editor populares incluyen:
|
||||
- `notepad` - Windows Bloc de notas
|
||||
- `subl` - Texto sublime
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Algunos editores como VS Code deben iniciarse con el indicador `--wait`.
|
||||
:::
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ opencode web
|
||||
|
||||
Esto inicia un servidor local en `127.0.0.1` con un puerto disponible aleatorio y abre automáticamente OpenCode en su navegador predeterminado.
|
||||
|
||||
:::precaución
|
||||
:::caution
|
||||
Si no se establece `OPENCODE_SERVER_PASSWORD`, el servidor no será seguro. Esto está bien para uso local, pero debe configurarse para acceso a la red.
|
||||
:::
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ export const email = `mailto:${config.email}`
|
||||
|
||||
OpenCode Zen es una lista de modelos probados y verificados proporcionada por el equipo OpenCode.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
OpenCode Zen se encuentra actualmente en versión beta.
|
||||
:::
|
||||
|
||||
@@ -25,7 +25,7 @@ Hay una gran cantidad de modelos, pero solo unos pocos.
|
||||
Estos modelos funcionan bien como agentes codificadores. Además, la mayoría de los proveedores son
|
||||
configurado de manera muy diferente; por lo que obtienes un rendimiento y una calidad muy diferentes.
|
||||
|
||||
:::consejo
|
||||
:::tip
|
||||
Probamos un grupo selecto de modelos y proveedores que funcionan bien con OpenCode.
|
||||
:::
|
||||
|
||||
@@ -152,7 +152,7 @@ Apoyamos un modelo de pago por uso. A continuación se muestran los precios **po
|
||||
|
||||
Es posible que notes _Claude Haiku 3.5_ en tu historial de uso. Este es un [modelo de bajo costo](/docs/config/#models) que se utiliza para generar los títulos de tus sesiones.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Las tarifas de las tarjetas de crédito se trasladan al costo (4,4% + 0,30 dólares por transacción); No cobramos nada más allá de eso.
|
||||
:::
|
||||
|
||||
@@ -204,7 +204,7 @@ Todos nuestros modelos están alojados en los EE. UU. Nuestros proveedores sigue
|
||||
Zen también funciona muy bien para equipos. Puedes invitar a compañeros de equipo, asignar roles, seleccionar
|
||||
los modelos que utiliza su equipo y más.
|
||||
|
||||
:::nota
|
||||
:::note
|
||||
Actualmente, los espacios de trabajo son gratuitos para los equipos como parte de la versión beta.
|
||||
:::
|
||||
|
||||
|
||||
@@ -29,15 +29,16 @@ opencode [project]
|
||||
|
||||
#### Drapeaux
|
||||
|
||||
| Drapeau | Court | Descriptif |
|
||||
| ------------ | ----- | -------------------------------------------------- |
|
||||
| `--continue` | `-c` | Continuer la dernière séance |
|
||||
| `--session` | `-s` | ID de session pour continuer |
|
||||
| `--prompt` | | Invite à utiliser |
|
||||
| `--model` | `-m` | Modèle à utiliser sous forme de fournisseur/modèle |
|
||||
| `--agent` | | Agent à utiliser |
|
||||
| `--port` | | Port à écouter sur |
|
||||
| `--hostname` | | Nom d'hôte sur lequel écouter |
|
||||
| Drapeau | Court | Descriptif |
|
||||
| ------------ | ----- | ----------------------------------------------------------------------------- |
|
||||
| `--continue` | `-c` | Continuer la dernière séance |
|
||||
| `--session` | `-s` | ID de session pour continuer |
|
||||
| `--fork` | | Forker la session en continuant (à utiliser avec `--continue` ou `--session`) |
|
||||
| `--prompt` | | Invite à utiliser |
|
||||
| `--model` | `-m` | Modèle à utiliser sous forme de fournisseur/modèle |
|
||||
| `--agent` | | Agent à utiliser |
|
||||
| `--port` | | Port à écouter sur |
|
||||
| `--hostname` | | Nom d'hôte sur lequel écouter |
|
||||
|
||||
---
|
||||
|
||||
@@ -339,6 +340,7 @@ opencode run --attach http://localhost:4096 "Explain async/await in JavaScript"
|
||||
| `--command` | | La commande à exécuter, utilisez message pour args |
|
||||
| `--continue` | `-c` | Continuer la dernière séance |
|
||||
| `--session` | `-s` | ID de session pour continuer |
|
||||
| `--fork` | | Forker la session en continuant (à utiliser avec `--continue` ou `--session`) |
|
||||
| `--share` | | Partager la séance |
|
||||
| `--model` | `-m` | Modèle à utiliser sous forme de fournisseur/modèle |
|
||||
| `--agent` | | Agent à utiliser |
|
||||
|
||||
@@ -22,30 +22,30 @@ Vous pouvez également consulter [awesome-opencode](https://github.com/awesome-o
|
||||
| [opencode-type-inject](https://github.com/nick-vi/opencode-type-inject) | Injectez automatiquement les types TypeScript/Svelte dans les lectures de fichiers avec des outils de recherche |
|
||||
| [opencode-openai-codex-auth](https://github.com/numman-ali/opencode-openai-codex-auth) | Utilisez votre abonnement ChatGPT Plus/Pro au lieu de crédits API |
|
||||
| [opencode-gemini-auth](https://github.com/jenslys/opencode-gemini-auth) | Utilisez votre forfait Gemini existant au lieu de la facturation API |
|
||||
| [opencode-antigravité-auth](https://github.com/NoeFabris/opencode-antigravity-auth) | Utilisez les modèles gratuits d'Antigravity au lieu de la facturation API |
|
||||
| [opencode-antigravity-auth](https://github.com/NoeFabris/opencode-antigravity-auth) | Utilisez les modèles gratuits d'Antigravity au lieu de la facturation API |
|
||||
| [opencode-devcontainers](https://github.com/athal7/opencode-devcontainers) | Isolation de conteneur de développement multibranche avec clones superficiels et ports attribués automatiquement |
|
||||
| [opencode-google-antigravity-auth](https://github.com/shekohex/opencode-google-antigravity-auth) | Plugin Google Antigravity OAuth, avec prise en charge de la recherche Google et gestion API plus robuste |
|
||||
| [opencode-élagage-de-contexte-dynamique](https://github.com/Tarquinen/opencode-dynamic-context-pruning) | Optimisez l'utilisation des jetons en éliminant les sorties d'outils obsolètes |
|
||||
| [opencode-dynamic-context-pruning](https://github.com/Tarquinen/opencode-dynamic-context-pruning) | Optimisez l'utilisation des jetons en éliminant les sorties d'outils obsolètes |
|
||||
| [opencode-websearch-cited](https://github.com/ghoulr/opencode-websearch-cited.git) | Ajoutez la prise en charge native de la recherche Web pour les fournisseurs pris en charge avec le style ancré par Google |
|
||||
| [opencode-pty](https://github.com/shekohex/opencode-pty.git) | Permet aux agents IA d'exécuter des processus en arrière-plan dans un PTY et de leur envoyer des entrées interactives. |
|
||||
| [opencode-shell-stratégie](https://github.com/JRedeker/opencode-shell-strategy) | Instructions pour les commandes shell non interactives - empêche les blocages des opérations dépendantes du téléscripteur |
|
||||
| [opencode-shell-strategy](https://github.com/JRedeker/opencode-shell-strategy) | Instructions pour les commandes shell non interactives - empêche les blocages des opérations dépendantes du téléscripteur |
|
||||
| [opencode-wakatime](https://github.com/angristan/opencode-wakatime) | Suivez l'utilisation de OpenCode avec Wakatime |
|
||||
| [opencode-md-table-formatter](https://github.com/franlol/opencode-md-table-formatter/tree/main) | Nettoyer les tableaux de démarques produits par les LLM |
|
||||
| [opencode-morph-fast-apply](https://github.com/JRedeker/opencode-morph-fast-apply) | Édition de code 10 fois plus rapide avec Morph Fast Apply API et les marqueurs d'édition différée |
|
||||
| [oh-mon-opencode](https://github.com/code-yeongyu/oh-my-opencode) | Agents d'arrière-plan, outils LSP/AST/MCP prédéfinis, agents sélectionnés, compatibles Claude Code |
|
||||
| [opencode-notificateur](https://github.com/panta82/opencode-notificator) | Notifications de bureau et alertes sonores pour les sessions OpenCode |
|
||||
| [opencode-notificateur](https://github.com/mohak34/opencode-notifier) | Notifications sur le bureau et alertes sonores pour les événements d'autorisation, d'achèvement et d'erreur |
|
||||
| [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) | Agents d'arrière-plan, outils LSP/AST/MCP prédéfinis, agents sélectionnés, compatibles Claude Code |
|
||||
| [opencode-notificator](https://github.com/panta82/opencode-notificator) | Notifications de bureau et alertes sonores pour les sessions OpenCode |
|
||||
| [opencode-notifier](https://github.com/mohak34/opencode-notifier) | Notifications sur le bureau et alertes sonores pour les événements d'autorisation, d'achèvement et d'erreur |
|
||||
| [opencode-zellij-namer](https://github.com/24601/opencode-zellij-namer) | Dénomination automatique de session Zellij basée sur l'IA basée sur le contexte OpenCode |
|
||||
| [opencode-habile](https://github.com/zenobi-us/opencode-skillful) | Autoriser les agents OpenCode à charger paresseusement les invites à la demande grâce à la découverte et à l'injection de compétences |
|
||||
| [opencode-supermémoire](https://github.com/supermemoryai/opencode-supermemory) | Mémoire persistante entre les sessions utilisant Supermemory |
|
||||
| [opencode-skillful](https://github.com/zenobi-us/opencode-skillful) | Autoriser les agents OpenCode à charger paresseusement les invites à la demande grâce à la découverte et à l'injection de compétences |
|
||||
| [opencode-supermemory](https://github.com/supermemoryai/opencode-supermemory) | Mémoire persistante entre les sessions utilisant Supermemory |
|
||||
| [@plannotator/opencode](https://github.com/backnotprop/plannotator/tree/main/apps/opencode-plugin) | Révision interactive du plan avec annotation visuelle et partage privé/hors ligne |
|
||||
| [@openspoon/subtask2](https://github.com/spoons-and-mirrors/subtask2) | Étendez opencode /commands dans un système d'orchestration puissant avec contrôle de flux granulaire |
|
||||
| [opencode-planificateur](https://github.com/different-ai/opencode-scheduler) | Planifiez des tâches récurrentes à l'aide de launchd (Mac) ou systemd (Linux) avec la syntaxe cron |
|
||||
| [opencode-scheduler](https://github.com/different-ai/opencode-scheduler) | Planifiez des tâches récurrentes à l'aide de launchd (Mac) ou systemd (Linux) avec la syntaxe cron |
|
||||
| [micode](https://github.com/vtemian/micode) | Brainstorming structuré → Planifier → Mettre en œuvre un workflow avec continuité de session |
|
||||
| [octo](https://github.com/vtemian/octto) | Interface utilisateur de navigateur interactive pour le brainstorming IA avec des formulaires multi-questions |
|
||||
| [opencode-agents-de-fond](https://github.com/kdcokenny/opencode-background-agents) | Agents d'arrière-plan de style Claude Code avec délégation asynchrone et persistance du contexte |
|
||||
| [octto](https://github.com/vtemian/octto) | Interface utilisateur de navigateur interactive pour le brainstorming IA avec des formulaires multi-questions |
|
||||
| [opencode-background-agents](https://github.com/kdcokenny/opencode-background-agents) | Agents d'arrière-plan de style Claude Code avec délégation asynchrone et persistance du contexte |
|
||||
| [opencode-notifier](https://github.com/kdcokenny/opencode-notify) | Notifications natives du système d'exploitation pour OpenCode – savoir quand les tâches sont terminées |
|
||||
| [opencode-espace de travail](https://github.com/kdcokenny/opencode-workspace) | Harnais d'orchestration multi-agents fourni – 16 composants, une installation |
|
||||
| [opencode-workspace](https://github.com/kdcokenny/opencode-workspace) | Harnais d'orchestration multi-agents fourni – 16 composants, une installation |
|
||||
| [opencode-worktree](https://github.com/kdcokenny/opencode-worktree) | Arbres de travail Git sans friction pour OpenCode |
|
||||
|
||||
---
|
||||
@@ -56,12 +56,12 @@ Vous pouvez également consulter [awesome-opencode](https://github.com/awesome-o
|
||||
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
|
||||
| [kimaki](https://github.com/remorses/kimaki) | Bot Discord pour contrôler les sessions OpenCode, construit sur le SDK |
|
||||
| [opencode.nvim](https://github.com/NickvanDyke/opencode.nvim) | Plugin Neovim pour les invites compatibles avec l'éditeur, construit sur API |
|
||||
| [portail](https://github.com/hosenur/portal) | Interface utilisateur Web axée sur les mobiles pour OpenCode sur Tailscale/VPN |
|
||||
| [Modèle de plug-in opencode](https://github.com/zenobi-us/opencode-plugin-template/) | Modèle pour créer des plugins OpenCode |
|
||||
| [portal](https://github.com/hosenur/portal) | Interface utilisateur Web axée sur les mobiles pour OpenCode sur Tailscale/VPN |
|
||||
| [opencode plugin template](https://github.com/zenobi-us/opencode-plugin-template/) | Modèle pour créer des plugins OpenCode |
|
||||
| [opencode.nvim](https://github.com/sudo-tee/opencode.nvim) | Frontend Neovim pour opencode - un agent de codage d'IA basé sur un terminal |
|
||||
| [ai-sdk-provider-opencode-sdk](https://github.com/ben-vargas/ai-sdk-provider-opencode-sdk) | Fournisseur Vercel AI SDK pour l'utilisation de OpenCode via @opencode-ai/sdk |
|
||||
| [OpenChamber](https://github.com/btriapitsyn/openchamber) | Application Web/De bureau et extension VS Code pour OpenCode |
|
||||
| [OpenCode-Obsidienne](https://github.com/mtymek/opencode-obsidian) | Plugin Obsidian qui intègre OpenCode dans l'interface utilisateur d'Obsidian |
|
||||
| [OpenCode-Obsidian](https://github.com/mtymek/opencode-obsidian) | Plugin Obsidian qui intègre OpenCode dans l'interface utilisateur d'Obsidian |
|
||||
| [OpenWork](https://github.com/different-ai/openwork) | Une alternative open source à Claude Cowork, propulsée par OpenCode |
|
||||
| [ocx](https://github.com/kdcokenny/ocx) | Gestionnaire d'extensions OpenCode avec profils portables et isolés. |
|
||||
| [CodeNomad](https://github.com/NeuralNomadsAI/CodeNomad) | Application client de bureau, Web, mobile et distante pour OpenCode |
|
||||
@@ -72,5 +72,5 @@ Vous pouvez également consulter [awesome-opencode](https://github.com/awesome-o
|
||||
|
||||
| Nom | Descriptif |
|
||||
| ----------------------------------------------------------------- | ------------------------------------------------------------------------------ |
|
||||
| [Agent](https://github.com/Cluster444/agentic) | Agents et commandes d'IA modulaires pour un développement structuré |
|
||||
| [Agentic](https://github.com/Cluster444/agentic) | Agents et commandes d'IA modulaires pour un développement structuré |
|
||||
| [opencode-agents](https://github.com/darrenhinde/opencode-agents) | Configurations, invites, agents et plug-ins pour des flux de travail améliorés |
|
||||
|
||||
@@ -169,10 +169,10 @@ const agents = await client.app.agents()
|
||||
|
||||
### Projet
|
||||
|
||||
| Méthode | Descriptif | Réponse |
|
||||
| ------------------- | -------------------------- | -------------------------------------------- |
|
||||
| `project.list()` | Lister tous les projets | <a href={typesUrl}><code>Projet[]</code></a> |
|
||||
| `project.current()` | Obtenir le projet en cours | <a href={typesUrl}><code>Projet</code></a> |
|
||||
| Méthode | Descriptif | Réponse |
|
||||
| ------------------- | -------------------------- | --------------------------------------------- |
|
||||
| `project.list()` | Lister tous les projets | <a href={typesUrl}><code>Project[]</code></a> |
|
||||
| `project.current()` | Obtenir le projet en cours | <a href={typesUrl}><code>Project</code></a> |
|
||||
|
||||
---
|
||||
|
||||
@@ -190,9 +190,9 @@ const currentProject = await client.project.current()
|
||||
|
||||
### Chemin
|
||||
|
||||
| Méthode | Descriptif | Réponse |
|
||||
| ------------ | ------------------------ | ------------------------------------------ |
|
||||
| `path.get()` | Obtenir le chemin actuel | <a href={typesUrl}><code>Chemin</code></a> |
|
||||
| Méthode | Descriptif | Réponse |
|
||||
| ------------ | ------------------------ | ---------------------------------------- |
|
||||
| `path.get()` | Obtenir le chemin actuel | <a href={typesUrl}><code>Path</code></a> |
|
||||
|
||||
---
|
||||
|
||||
@@ -207,10 +207,10 @@ const pathInfo = await client.path.get()
|
||||
|
||||
### Configuration
|
||||
|
||||
| Méthode | Descriptif | Réponse |
|
||||
| -------------------- | -------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
|
||||
| `config.get()` | Obtenir des informations de configuration | <a href={typesUrl}><code>Configuration</code></a> |
|
||||
| `config.providers()` | Liste des fournisseurs et modèles par défaut | `{ providers: `<a href={typesUrl}><code>Fournisseur[]</code></a>`, default: { [key: string]: string } }` |
|
||||
| Méthode | Descriptif | Réponse |
|
||||
| -------------------- | -------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
|
||||
| `config.get()` | Obtenir des informations de configuration | <a href={typesUrl}><code>Config</code></a> |
|
||||
| `config.providers()` | Liste des fournisseurs et modèles par défaut | `{ providers: `<a href={typesUrl}><code>Provider[]</code></a>`, default: { [key: string]: string } }` |
|
||||
|
||||
---
|
||||
|
||||
@@ -287,9 +287,9 @@ await client.session.prompt({
|
||||
| ------------------------- | -------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
||||
| `find.text({ query })` | Rechercher du texte dans des fichiers | Tableau d'objets correspondant avec `path`, `lines`, `line_number`, `absolute_offset`, `submatches` |
|
||||
| `find.files({ query })` | Rechercher des fichiers et des répertoires par nom | `string[]` (chemins) |
|
||||
| `find.symbols({ query })` | Rechercher des symboles d'espace de travail | <a href={typesUrl}><code>Symbole[]</code></a> |
|
||||
| `find.symbols({ query })` | Rechercher des symboles d'espace de travail | <a href={typesUrl}><code>Symbol[]</code></a> |
|
||||
| `file.read({ query })` | Lire un fichier | `{ type: "raw" \| "patch", content: string }` |
|
||||
| `file.status({ query? })` | Obtenir le statut des fichiers suivis | <a href={typesUrl}><code>Fichier[]</code></a> |
|
||||
| `file.status({ query? })` | Obtenir le statut des fichiers suivis | <a href={typesUrl}><code>File[]</code></a> |
|
||||
|
||||
`find.files` prend en charge quelques champs de requête facultatifs :
|
||||
|
||||
|
||||
@@ -98,10 +98,10 @@ Le serveur opencode expose les API suivantes.
|
||||
|
||||
### Projet
|
||||
|
||||
| Méthode | Chemin | Descriptif | Réponse |
|
||||
| ------- | ------------------ | -------------------------- | -------------------------------------------- |
|
||||
| `GET` | `/project` | Lister tous les projets | <a href={typesUrl}><code>Projet[]</code></a> |
|
||||
| `GET` | `/project/current` | Obtenez le projet en cours | <a href={typesUrl}><code>Projet</code></a> |
|
||||
| Méthode | Chemin | Descriptif | Réponse |
|
||||
| ------- | ------------------ | -------------------------- | --------------------------------------------- |
|
||||
| `GET` | `/project` | Lister tous les projets | <a href={typesUrl}><code>Project[]</code></a> |
|
||||
| `GET` | `/project/current` | Obtenez le projet en cours | <a href={typesUrl}><code>Project</code></a> |
|
||||
|
||||
---
|
||||
|
||||
@@ -109,7 +109,7 @@ Le serveur opencode expose les API suivantes.
|
||||
|
||||
| Méthode | Chemin | Descriptif | Réponse |
|
||||
| ------- | ------- | ---------------------------------------------------- | ------------------------------------------- |
|
||||
| `GET` | `/path` | Obtenir le chemin actuel | <a href={typesUrl}><code>Chemin</code></a> |
|
||||
| `GET` | `/path` | Obtenir le chemin actuel | <a href={typesUrl}><code>Path</code></a> |
|
||||
| `GET` | `/vcs` | Obtenir des informations VCS pour le projet en cours | <a href={typesUrl}><code>VcsInfo</code></a> |
|
||||
|
||||
---
|
||||
@@ -124,22 +124,22 @@ Le serveur opencode expose les API suivantes.
|
||||
|
||||
### Configuration
|
||||
|
||||
| Méthode | Chemin | Descriptif | Réponse |
|
||||
| ------- | ------------------- | -------------------------------------------- | ------------------------------------------------------------------------------------------- |
|
||||
| `GET` | `/config` | Obtenir des informations de configuration | <a href={typesUrl}><code>Configuration</code></a> |
|
||||
| `PATCH` | `/config` | Mettre à jour la configuration | <a href={typesUrl}><code>Configuration</code></a> |
|
||||
| `GET` | `/config/providers` | Liste des fournisseurs et modèles par défaut | `{ providers: `<a href={typesUrl}>Fournisseur[]</a>`, default: { [key: string]: string } }` |
|
||||
| Méthode | Chemin | Descriptif | Réponse |
|
||||
| ------- | ------------------- | -------------------------------------------- | ---------------------------------------------------------------------------------------- |
|
||||
| `GET` | `/config` | Obtenir des informations de configuration | <a href={typesUrl}><code>Config</code></a> |
|
||||
| `PATCH` | `/config` | Mettre à jour la configuration | <a href={typesUrl}><code>Config</code></a> |
|
||||
| `GET` | `/config/providers` | Liste des fournisseurs et modèles par défaut | `{ providers: `<a href={typesUrl}>Provider[]</a>`, default: { [key: string]: string } }` |
|
||||
|
||||
---
|
||||
|
||||
### Fournisseur
|
||||
|
||||
| Méthode | Chemin | Descriptif | Réponse |
|
||||
| ------- | -------------------------------- | ------------------------------------------------------ | -------------------------------------------------------------------------------------- |
|
||||
| `GET` | `/provider` | Liste de tous les fournisseurs | `{ all: `<a href={typesUrl}>Fournisseur[]</a>`, default: {...}, connected: string[] }` |
|
||||
| `GET` | `/provider/auth` | Obtenir les méthodes d'authentification du fournisseur | `{ [providerID: string]: `<a href={typesUrl}>ProviderAuthMethod[]</a>` }` |
|
||||
| `POST` | `/provider/{id}/oauth/authorize` | Autoriser un fournisseur en utilisant OAuth | <a href={typesUrl}><code>ProviderAuthAuthorization</code></a> |
|
||||
| `POST` | `/provider/{id}/oauth/callback` | Gérer le rappel OAuth pour un fournisseur | `boolean` |
|
||||
| Méthode | Chemin | Descriptif | Réponse |
|
||||
| ------- | -------------------------------- | ------------------------------------------------------ | ----------------------------------------------------------------------------------- |
|
||||
| `GET` | `/provider` | Liste de tous les fournisseurs | `{ all: `<a href={typesUrl}>Provider[]</a>`, default: {...}, connected: string[] }` |
|
||||
| `GET` | `/provider/auth` | Obtenir les méthodes d'authentification du fournisseur | `{ [providerID: string]: `<a href={typesUrl}>ProviderAuthMethod[]</a>` }` |
|
||||
| `POST` | `/provider/{id}/oauth/authorize` | Autoriser un fournisseur en utilisant OAuth | <a href={typesUrl}><code>ProviderAuthAuthorization</code></a> |
|
||||
| `POST` | `/provider/{id}/oauth/callback` | Gérer le rappel OAuth pour un fournisseur | `boolean` |
|
||||
|
||||
---
|
||||
|
||||
@@ -195,10 +195,10 @@ Le serveur opencode expose les API suivantes.
|
||||
| ------- | ------------------------ | -------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
||||
| `GET` | `/find?pattern=<pat>` | Rechercher du texte dans des fichiers | Tableau d'objets correspondant avec `path`, `lines`, `line_number`, `absolute_offset`, `submatches` |
|
||||
| `GET` | `/find/file?query=<q>` | Rechercher des fichiers et des répertoires par nom | `string[]` (chemins) |
|
||||
| `GET` | `/find/symbol?query=<q>` | Rechercher des symboles d'espace de travail | <a href={typesUrl}><code>Symbole[]</code></a> |
|
||||
| `GET` | `/find/symbol?query=<q>` | Rechercher des symboles d'espace de travail | <a href={typesUrl}><code>Symbol[]</code></a> |
|
||||
| `GET` | `/file?path=<path>` | Liste des fichiers et répertoires | <a href={typesUrl}><code>FileNode[]</code></a> |
|
||||
| `GET` | `/file/content?path=<p>` | Lire un fichier | <a href={typesUrl}><code>FileContent</code></a> |
|
||||
| `GET` | `/file/status` | Obtenir le statut des fichiers suivis | <a href={typesUrl}><code>Fichier[]</code></a> |
|
||||
| `GET` | `/file/status` | Obtenir le statut des fichiers suivis | <a href={typesUrl}><code>File[]</code></a> |
|
||||
|
||||
#### Paramètres de requête `/find/file`
|
||||
|
||||
@@ -212,10 +212,10 @@ Le serveur opencode expose les API suivantes.
|
||||
|
||||
### Outils (expérimentaux)
|
||||
|
||||
| Méthode | Chemin | Descriptif | Réponse |
|
||||
| ------- | ------------------------------------------- | ----------------------------------------------------------- | -------------------------------------------------- |
|
||||
| `GET` | `/experimental/tool/ids` | Répertorier tous les ID d'outils | <a href={typesUrl}><code>ToolIDs</code></a> |
|
||||
| `GET` | `/experimental/tool?provider=<p>&model=<m>` | Répertorier les outils avec des schémas JSON pour un modèle | <a href={typesUrl}><code>Liste d'outils</code></a> |
|
||||
| Méthode | Chemin | Descriptif | Réponse |
|
||||
| ------- | ------------------------------------------- | ----------------------------------------------------------- | -------------------------------------------- |
|
||||
| `GET` | `/experimental/tool/ids` | Répertorier tous les ID d'outils | <a href={typesUrl}><code>ToolIDs</code></a> |
|
||||
| `GET` | `/experimental/tool?provider=<p>&model=<m>` | Répertorier les outils avec des schémas JSON pour un modèle | <a href={typesUrl}><code>ToolList</code></a> |
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -62,40 +62,40 @@ Vous êtes facturé par demande et vous pouvez ajouter des crédits à votre com
|
||||
|
||||
Vous pouvez également accéder à nos modèles via les points de terminaison API suivants.
|
||||
|
||||
| Modèle | ID du modèle | Point de terminaison | Package SDK IA |
|
||||
| -------------------- | -------------------- | -------------------------------------------------- | --------------------------- |
|
||||
| TPG 5.2 | gpt-5.2 | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| Codex GPT 5.2 | gpt-5.2-codex | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.1 | gpt-5.1 | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| Codex GPT 5.1 | gpt-5.1-codex | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.1 Codex Max | gpt-5.1-codex-max | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.1 Codex Mini | gpt-5.1-codex-mini | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| TPG 5 | gpt-5 | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| Codex GPT5 | gpt-5-codex | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT5Nano | gpt-5-nano | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| Claude Sonnet 4.5 | claude-sonnet-4-5 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Sonnet 4 | claude-sonnet-4 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Haïku 4.5 | claude-haïku-4-5 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Haïku 3.5 | claude-3-5-haïku | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Opus 4.6 | claude-opus-4-6 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Opus 4.5 | claude-opus-4-5 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Opus 4.1 | claude-opus-4-1 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Gémeaux 3 Pro | gemini-3-pro | `https://opencode.ai/zen/v1/models/gemini-3-pro` | `@ai-sdk/google` |
|
||||
| Gémeaux 3 Flash | gemini-3-flash | `https://opencode.ai/zen/v1/models/gemini-3-flash` | `@ai-sdk/google` |
|
||||
| MiniMax M2.1 | minimax-m2.1 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| MiniMax M2.1 Gratuit | minimax-m2.1-gratuit | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| GLM 4.7 | glm-4.7 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| GLM 4.7 Gratuit | glm-4.7-gratuit | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| GLM 4.6 | glm-4.6 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2.5 | kimi-k2.5 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2.5 Gratuit | kimi-k2.5-gratuit | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2 Pensée | kimi-k2-pensée | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2 | kimi-k2 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Codeur Qwen3 480B | codeur qwen3 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Gros cornichon | gros cornichon | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Modèle | ID du modèle | Point de terminaison | Package SDK IA |
|
||||
| ------------------ | ------------------ | -------------------------------------------------- | --------------------------- |
|
||||
| GPT 5.2 | gpt-5.2 | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.2 Codex | gpt-5.2-codex | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.1 | gpt-5.1 | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.1 Codex | gpt-5.1-codex | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.1 Codex Max | gpt-5.1-codex-max | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.1 Codex Mini | gpt-5.1-codex-mini | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5 | gpt-5 | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5 Codex | gpt-5-codex | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5 Nano | gpt-5-nano | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| Claude Sonnet 4.5 | claude-sonnet-4-5 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Sonnet 4 | claude-sonnet-4 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Haiku 4.5 | claude-haiku-4-5 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Haiku 3.5 | claude-3-5-haiku | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Opus 4.6 | claude-opus-4-6 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Opus 4.5 | claude-opus-4-5 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Opus 4.1 | claude-opus-4-1 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Gemini 3 Pro | gemini-3-pro | `https://opencode.ai/zen/v1/models/gemini-3-pro` | `@ai-sdk/google` |
|
||||
| Gemini 3 Flash | gemini-3-flash | `https://opencode.ai/zen/v1/models/gemini-3-flash` | `@ai-sdk/google` |
|
||||
| MiniMax M2.1 | minimax-m2.1 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| MiniMax M2.1 Free | minimax-m2.1-free | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| GLM 4.7 | glm-4.7 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| GLM 4.7 Free | glm-4.7-free | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| GLM 4.6 | glm-4.6 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2.5 | kimi-k2.5 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2.5 Free | kimi-k2.5-free | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2 Thinking | kimi-k2-thinking | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2 | kimi-k2 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Qwen3 Coder 480B | qwen3-coder | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Big Pickle | big-pickle | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
|
||||
Le [id du modèle](/docs/config/#models) dans votre configuration OpenCode
|
||||
utilise le format `opencode/<model-id>`. Par exemple, pour le Codex GPT 5.2, vous devez
|
||||
utilise le format `opencode/<model-id>`. Par exemple, pour GPT 5.2 Codex, vous devez
|
||||
utilisez `opencode/gpt-5.2-codex` dans votre configuration.
|
||||
|
||||
---
|
||||
@@ -116,39 +116,39 @@ Nous soutenons un modèle de paiement à l'utilisation. Vous trouverez ci-dessou
|
||||
|
||||
| Modèle | Entrée | Sortie | Lecture en cache | Écriture en cache |
|
||||
| --------------------------------- | ------- | ------- | ---------------- | ----------------- |
|
||||
| Gros cornichon | Gratuit | Gratuit | Gratuit | - |
|
||||
| MiniMax M2.1 Gratuit | Gratuit | Gratuit | Gratuit | - |
|
||||
| Big Pickle | Gratuit | Gratuit | Gratuit | - |
|
||||
| MiniMax M2.1 Free | Gratuit | Gratuit | Gratuit | - |
|
||||
| MiniMax M2.1 | 0,30 $ | 1,20 $ | 0,10 $ | - |
|
||||
| GLM 4.7 Gratuit | Gratuit | Gratuit | Gratuit | - |
|
||||
| GLM 4.7 Free | Gratuit | Gratuit | Gratuit | - |
|
||||
| GLM 4.7 | 0,60 $ | 2,20 $ | 0,10 $ | - |
|
||||
| GLM 4.6 | 0,60 $ | 2,20 $ | 0,10 $ | - |
|
||||
| Kimi K2.5 Gratuit | Gratuit | Gratuit | Gratuit | - |
|
||||
| Kimi K2.5 Free | Gratuit | Gratuit | Gratuit | - |
|
||||
| Kimi K2.5 | 0,60 $ | 3,00 $ | 0,08 $ | - |
|
||||
| Kimi K2 Pensée | 0,40 $ | 2,50 $ | - | - |
|
||||
| Kimi K2 Thinking | 0,40 $ | 2,50 $ | - | - |
|
||||
| Kimi K2 | 0,40 $ | 2,50 $ | - | - |
|
||||
| Codeur Qwen3 480B | 0,45 $ | 1,50 $ | - | - |
|
||||
| Qwen3 Coder 480B | 0,45 $ | 1,50 $ | - | - |
|
||||
| Claude Sonnet 4.5 (≤ 200K jetons) | 3,00 $ | 15,00 $ | 0,30 $ | 3,75 $ |
|
||||
| Claude Sonnet 4.5 (> 200K jetons) | 6,00 $ | 22,50 $ | 0,60 $ | 7,50 $ |
|
||||
| Claude Sonnet 4 (≤ 200K jetons) | 3,00 $ | 15,00 $ | 0,30 $ | 3,75 $ |
|
||||
| Claude Sonnet 4 (> 200K jetons) | 6,00 $ | 22,50 $ | 0,60 $ | 7,50 $ |
|
||||
| Claude Haïku 4.5 | 1,00 $ | 5,00 $ | 0,10 $ | 1,25 $ |
|
||||
| Claude Haïku 3.5 | 0,80 $ | 4,00 $ | 0,08 $ | 1,00 $ |
|
||||
| Claude Haiku 4.5 | 1,00 $ | 5,00 $ | 0,10 $ | 1,25 $ |
|
||||
| Claude Haiku 3.5 | 0,80 $ | 4,00 $ | 0,08 $ | 1,00 $ |
|
||||
| Claude Opus 4.6 (≤ 200K jetons) | 5,00 $ | 25,00 $ | 0,50 $ | 6,25 $ |
|
||||
| Claude Opus 4.6 (> 200K jetons) | 10,00 $ | 37,50 $ | 1,00 $ | 12,50 $ |
|
||||
| Claude Opus 4.5 | 5,00 $ | 25,00 $ | 0,50 $ | 6,25 $ |
|
||||
| Claude Opus 4.1 | 15,00 $ | 75,00 $ | 1,50 $ | 18,75 $ |
|
||||
| Gemini 3 Pro (≤ 200 000 jetons) | 2,00 $ | 12,00 $ | 0,20 $ | - |
|
||||
| Gemini 3 Pro (> 200 000 jetons) | 4,00 $ | 18,00 $ | 0,40 $ | - |
|
||||
| Gémeaux 3 Flash | 0,50 $ | 3,00 $ | 0,05 $ | - |
|
||||
| TPG 5.2 | 1,75 $ | 14,00 $ | 0,175 $ | - |
|
||||
| Codex GPT 5.2 | 1,75 $ | 14,00 $ | 0,175 $ | - |
|
||||
| Gemini 3 Flash | 0,50 $ | 3,00 $ | 0,05 $ | - |
|
||||
| GPT 5.2 | 1,75 $ | 14,00 $ | 0,175 $ | - |
|
||||
| GPT 5.2 Codex | 1,75 $ | 14,00 $ | 0,175 $ | - |
|
||||
| GPT 5.1 | 1,07 $ | 8,50 $ | 0,107 $ | - |
|
||||
| Codex GPT 5.1 | 1,07 $ | 8,50 $ | 0,107 $ | - |
|
||||
| GPT 5.1 Codex | 1,07 $ | 8,50 $ | 0,107 $ | - |
|
||||
| GPT 5.1 Codex Max | 1,25 $ | 10,00 $ | 0,125 $ | - |
|
||||
| GPT 5.1 Codex Mini | 0,25 $ | 2,00 $ | 0,025 $ | - |
|
||||
| TPG 5 | 1,07 $ | 8,50 $ | 0,107 $ | - |
|
||||
| Codex GPT5 | 1,07 $ | 8,50 $ | 0,107 $ | - |
|
||||
| GPT5Nano | Gratuit | Gratuit | Gratuit | - |
|
||||
| GPT 5 | 1,07 $ | 8,50 $ | 0,107 $ | - |
|
||||
| GPT 5 Codex | 1,07 $ | 8,50 $ | 0,107 $ | - |
|
||||
| GPT 5 Nano | Gratuit | Gratuit | Gratuit | - |
|
||||
|
||||
Vous remarquerez peut-être _Claude Haiku 3.5_ dans votre historique d'utilisation. Il s'agit d'un [modèle low cost](/docs/config/#models) qui est utilisé pour générer les titres de vos sessions.
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ opencode [project]
|
||||
| ------------ | ----- | ----------------------------------- |
|
||||
| `--continue` | `-c` | Continua l'ultima sessione |
|
||||
| `--session` | `-s` | ID sessione da continuare |
|
||||
| `--fork` | | Duplica la sessione quando continui (usa con `--continue` o `--session`) |
|
||||
| `--prompt` | | Prompt da usare |
|
||||
| `--model` | `-m` | Modello nel formato provider/model |
|
||||
| `--agent` | | Agente da usare |
|
||||
@@ -339,6 +340,7 @@ opencode run --attach http://localhost:4096 "Explain async/await in JavaScript"
|
||||
| `--command` | | Il comando da eseguire; usa message per gli argomenti |
|
||||
| `--continue` | `-c` | Continua l'ultima sessione |
|
||||
| `--session` | `-s` | ID sessione da continuare |
|
||||
| `--fork` | | Duplica la sessione quando continui (usa con `--continue` o `--session`) |
|
||||
| `--share` | | Condividi la sessione |
|
||||
| `--model` | `-m` | Modello nel formato provider/model |
|
||||
| `--agent` | | Agente da usare |
|
||||
|
||||
@@ -5,10 +5,9 @@ description: ACP 互換エディターで OpenCode を使用します。
|
||||
|
||||
OpenCode は [Agent Client Protocol](https://agentclientprotocol.com) または (ACP) をサポートしているため、互換性のあるエディターや IDE で直接使用できます。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
ACP をサポートするエディターとツールのリストについては、[ACP progress report](https://zed.dev/blog/acp-progress-report#available-now).
|
||||
:::
|
||||
|
||||
ACP は、コード エディターと AI コーディング エージェント間の通信を標準化するオープン プロトコルです。
|
||||
|
||||
---
|
||||
@@ -144,10 +143,9 @@ require("codecompanion").setup({
|
||||
|
||||
OpenCode は、ACP 経由でもターミナル内で動作するのと同じように動作します。すべての機能がサポートされています。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
`/undo` や `/redo` などの一部の組み込みスラッシュ コマンドは現在サポートされていません。
|
||||
:::
|
||||
|
||||
- 組み込みツール (ファイル操作、ターミナルコマンドなど)
|
||||
- カスタムツールとスラッシュコマンド
|
||||
- OpenCode 構成で構成された MCP サーバー
|
||||
|
||||
@@ -5,11 +5,10 @@ description: 特殊なエージェントを構成して使用します。
|
||||
|
||||
エージェントは、特定のタスクやワークフロー向けに構成できる特殊な AI アシスタントです。これらを使用すると、カスタム プロンプト、モデル、ツール アクセスを備えた焦点を絞ったツールを作成できます。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
プラン エージェントを使用すると、コードを変更せずにコードを分析し、提案を確認できます。
|
||||
:::
|
||||
|
||||
セッション中にエージェントを切り替えることも、`@` メンションを使用してエージェントを呼び出すこともできます。
|
||||
You メンションを使用してエージェントを呼び出すこともできます。
|
||||
|
||||
---
|
||||
|
||||
@@ -23,10 +22,9 @@ OpenCode には 2 種類のエージェントがあります。プライマリ
|
||||
|
||||
プライマリ エージェントは、直接対話する主要なアシスタントです。 **Tab** キー、または設定した `switch_agent` キーバインドを使用して、それらを切り替えることができます。これらのエージェントが主な会話を処理します。ツールへのアクセスは権限によって構成されます。たとえば、Build ではすべてのツールが有効になっていますが、Plan は制限されています。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
**Tab** キーを使用して、セッション中にプライマリ エージェントを切り替えることができます。
|
||||
:::
|
||||
|
||||
OpenCode には、**Build** と **Plan** という 2 つの組み込みプライマリ エージェントが付属しています。良い
|
||||
以下を見てください。
|
||||
|
||||
@@ -301,10 +299,9 @@ Provide constructive feedback without making direct changes.
|
||||
|
||||
制限に達すると、エージェントは、作業の概要と推奨される残りのタスクを応答するように指示する特別なシステム プロンプトを受け取ります。
|
||||
|
||||
:::注意
|
||||
:::caution
|
||||
従来の `maxSteps` フィールドは非推奨になりました。代わりに `steps` を使用してください。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
### 無効にする
|
||||
@@ -345,10 +342,9 @@ Provide constructive feedback without making direct changes.
|
||||
|
||||
`model` 構成を使用して、このエージェントのモデルをオーバーライドします。さまざまなタスクに最適化されたさまざまなモデルを使用する場合に役立ちます。たとえば、計画にはより高速なモデルを、実装にはより有能なモデルを使用します。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
モデルを指定しない場合、プライマリ エージェントは [グローバルに設定されたモデル ](/docs/config#models) を使用し、サブエージェントはサブエージェントを呼び出したプライマリ エージェントのモデルを使用します。
|
||||
:::
|
||||
|
||||
```json title="opencode.json"
|
||||
{
|
||||
"agent": {
|
||||
@@ -385,11 +381,10 @@ OpenCode 構成内のモデル ID は、`provider/model-id` という形式を
|
||||
}
|
||||
```
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
エージェント固有の設定はグローバル設定をオーバーライドします。
|
||||
:::
|
||||
|
||||
ワイルドカードを使用して複数のツールを一度に制御することもできます。たとえば、MCP サーバーからすべてのツールを無効にするには、次のようにします。
|
||||
You サーバーからすべてのツールを無効にするには、次のようにします。
|
||||
|
||||
```json title="opencode.json"
|
||||
{
|
||||
@@ -557,10 +552,9 @@ Only analyze code and suggest changes.
|
||||
|
||||
これは、オートコンプリート メニューでのユーザーの表示にのみ影響します。権限が許可されていれば、非表示のエージェントをタスク ツール経由でモデルから呼び出すことができます。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
`mode: subagent` エージェントにのみ適用されます。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
### タスクの権限
|
||||
@@ -586,14 +580,11 @@ Only analyze code and suggest changes.
|
||||
|
||||
`deny` に設定すると、サブエージェントはタスク ツールの説明から完全に削除されるため、モデルはそれを呼び出そうとしません。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
ルールは順番に評価され、**最後に一致したルールが優先されます**。上記の例では、`orchestrator-planner` は `*` (拒否) と `orchestrator-*` (許可) の両方に一致しますが、`orchestrator-*` は `*` の後に来るため、結果は `allow` になります。
|
||||
:::
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
ユーザーは、エージェントのタスク権限が拒否する場合でも、`@` オートコンプリート メニューを介して、いつでもサブエージェントを直接呼び出すことができます。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
### 色
|
||||
@@ -656,10 +647,9 @@ Only analyze code and suggest changes.
|
||||
|
||||
これらの追加オプションはモデルとプロバイダーに固有です。使用可能なパラメータについては、プロバイダのドキュメントを確認してください。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
`opencode models` を実行して、利用可能なモデルのリストを表示します。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
## エージェントの作成
|
||||
@@ -696,10 +686,9 @@ opencode agent create
|
||||
|
||||
以下に、役立つと思われるエージェントの例をいくつか示します。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
共有したいエージェントはいますか? [PR](https://github.com/anomalyco/opencode) を送信します。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
### 文書作成エージェント
|
||||
|
||||
@@ -408,12 +408,12 @@ opencode stats
|
||||
|
||||
#### フラグ
|
||||
|
||||
| 旗 | 説明 |
|
||||
| ----------- | ----------------------------------------------------------------------------------- | -------------------------------- |
|
||||
| `--days` | 過去 N 日間の統計を表示 (すべての時間) |
|
||||
| `--tools` | 表示するツールの数 (すべて) |
|
||||
| `--models` | モデルの使用状況の内訳を表示します (デフォルトでは非表示)。上位 N | を表示するには、数値を渡します。 |
|
||||
| `--project` | プロジェクトによるフィルター (すべてのプロジェクト、空の文字列: 現在のプロジェクト) |
|
||||
| Flag | Description |
|
||||
| ----------- | --------------------------------------------------------------------------- |
|
||||
| `--days` | Show stats for the last N days (all time) |
|
||||
| `--tools` | Number of tools to show (all) |
|
||||
| `--models` | Show model usage breakdown (hidden by default). Pass a number to show top N |
|
||||
| `--project` | Filter by project (all projects, empty string: current project) |
|
||||
|
||||
---
|
||||
|
||||
@@ -497,12 +497,12 @@ opencode uninstall
|
||||
|
||||
#### フラグ
|
||||
|
||||
| 旗 | ショート | 説明 |
|
||||
| --------------- | -------- | --------------------------------------------- | ---------------------------------------- |
|
||||
| `--keep-config` | `-c` | 設定ファイルを保持する |
|
||||
| `--keep-data` | `-d` | セッション データとスナップショットを保持する |
|
||||
| `--dry-run` | | | を削除せずに削除されるものを表示します。 |
|
||||
| `--force` | `-f` | 確認プロンプトをスキップする |
|
||||
| Flag | Short | Description |
|
||||
| --------------- | ----- | ------------------------------------------- |
|
||||
| `--keep-config` | `-c` | Keep configuration files |
|
||||
| `--keep-data` | `-d` | Keep session data and snapshots |
|
||||
| `--dry-run` | | Show what would be removed without removing |
|
||||
| `--force` | `-f` | Skip confirmation prompts |
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -316,8 +316,7 @@ Check for performance issues and suggest improvements.
|
||||
|
||||
opencode には、`/init`、`/undo`、`/redo`、`/share`、`/help` などのいくつかの組み込みコマンドが含まれています。 [詳細はこちら](/docs/tui#commands)。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
カスタム コマンドは組み込みコマンドをオーバーライドできます。
|
||||
:::
|
||||
|
||||
同じ名前のカスタム コマンドを定義すると、組み込みコマンドがオーバーライドされます。
|
||||
If コマンドを定義すると、組み込みコマンドがオーバーライドされます。
|
||||
|
||||
@@ -28,11 +28,10 @@ OpenCode は、**JSON** と **JSONC** (コメント付きの JSON) 形式の両
|
||||
構成をいくつかの異なる場所に配置できます。
|
||||
優先順位が違う。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
構成ファイルは置き換えられるのではなく、**マージ**されます。
|
||||
:::
|
||||
|
||||
構成ファイルは置き換えられるのではなく、マージされます。次の構成場所の設定が結合されます。後の構成は、キーが競合する場合にのみ、以前の構成をオーバーライドします。すべての構成からの競合しない設定は保持されます。
|
||||
Configuration
|
||||
|
||||
たとえば、グローバル設定で `theme: "opencode"` と `autoupdate: true` が設定され、プロジェクト設定で `model: "anthropic/claude-sonnet-4-5"` が設定されている場合、最終的な設定には 3 つの設定がすべて含まれます。
|
||||
|
||||
@@ -51,10 +50,9 @@ OpenCode は、**JSON** と **JSONC** (コメント付きの JSON) 形式の両
|
||||
|
||||
つまり、プロジェクト構成はグローバルのデフォルトをオーバーライドでき、グローバル構成はリモート組織のデフォルトをオーバーライドできます。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
`.opencode` および `~/.config/opencode` ディレクトリでは、サブディレクトリに **複数名** が使用されています: `agents/`、`commands/`、`modes/`、`plugins/`、`skills/`、`tools/`、および `themes/`。下位互換性のために、単数形の名前 (`agent/` など) もサポートされています。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
### リモート
|
||||
@@ -105,11 +103,10 @@ OpenCode は、**JSON** と **JSONC** (コメント付きの JSON) 形式の両
|
||||
|
||||
プロジェクトのルートに `opencode.json` を追加します。プロジェクト構成は、標準構成ファイルの中で最も高い優先順位を持ち、グローバル構成とリモート構成の両方をオーバーライドします。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
プロジェクト固有の構成をプロジェクトのルートに配置します。
|
||||
:::
|
||||
|
||||
OpenCode が起動すると、現在のディレクトリで構成ファイルを検索するか、最も近い Git ディレクトリまで移動します。
|
||||
When が起動すると、現在のディレクトリで構成ファイルを検索するか、最も近い Git ディレクトリまで移動します。
|
||||
|
||||
これは Git に安全にチェックインでき、グローバル スキーマと同じスキーマを使用します。
|
||||
|
||||
@@ -291,7 +288,7 @@ Amazon Bedrock は、AWS 固有の構成をサポートしています。
|
||||
- `profile` - `~/.aws/credentials` からの AWS 名前付きプロファイル (デフォルトは `AWS_PROFILE` 環境変数)
|
||||
- `endpoint` - VPC エンドポイントのカスタム エンドポイント URL。これは、AWS 固有の用語を使用した汎用 `baseURL` オプションのエイリアスです。両方を指定した場合は、`endpoint` が優先されます。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
ベアラー トークン (`AWS_BEARER_TOKEN_BEDROCK` または `/connect`) は、プロファイルベースの認証より優先されます。詳細については、「認証優先順位](/docs/providers#authentication-precedence)」を参照してください。
|
||||
:::
|
||||
|
||||
@@ -576,11 +573,10 @@ OpenCode は起動時に新しいアップデートを自動的にダウンロ
|
||||
}
|
||||
```
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
`disabled_providers` は `enabled_providers` よりも優先されます。
|
||||
:::
|
||||
|
||||
`disabled_providers` オプションは、プロバイダー ID の配列を受け入れます。プロバイダーが無効になっている場合:
|
||||
The オプションは、プロバイダー ID の配列を受け入れます。プロバイダーが無効になっている場合:
|
||||
|
||||
- 環境変数を設定してもロードされません。
|
||||
- `/connect` コマンドで API キーを設定してもロードされません。
|
||||
@@ -601,11 +597,10 @@ OpenCode は起動時に新しいアップデートを自動的にダウンロ
|
||||
|
||||
これは、OpenCode を 1 つずつ無効にするのではなく、特定のプロバイダーのみを使用するように制限したい場合に便利です。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
`disabled_providers` は `enabled_providers` よりも優先されます。
|
||||
:::
|
||||
|
||||
プロバイダーが `enabled_providers` と `disabled_providers` の両方に表示される場合、下位互換性のために `disabled_providers` が優先されます。
|
||||
If `enabled_providers` と `disabled_providers` の両方に表示される場合、下位互換性のために `disabled_providers` が優先されます。
|
||||
|
||||
---
|
||||
|
||||
@@ -620,10 +615,9 @@ OpenCode は起動時に新しいアップデートを自動的にダウンロ
|
||||
}
|
||||
```
|
||||
|
||||
:::注意
|
||||
:::caution
|
||||
実験的なオプションは安定していません。予告なく変更または削除される場合があります。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
## 変数
|
||||
|
||||
@@ -5,11 +5,10 @@ description: OpenCode で構築されたプロジェクトと統合。
|
||||
|
||||
OpenCode に基づいて構築されたコミュニティ プロジェクトのコレクション。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
OpenCode 関連プロジェクトをこのリストに追加したいですか? PRを送信してください。
|
||||
:::
|
||||
|
||||
エコシステムとコミュニティを集約したコミュニティ [awesome-opencode](https://github.com/awesome-opencode/awesome-opencode) および [opencode.cafe](https://opencode.cafe) もチェックしてください。
|
||||
You [awesome-opencode](https://github.com/awesome-opencode/awesome-opencode) および [opencode.cafe](https://opencode.cafe) もチェックしてください。
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -8,11 +8,10 @@ export const email = `mailto:${config.email}`
|
||||
|
||||
OpenCode Enterprise は、コードとデータがインフラストラクチャから決して流出しないようにしたい組織を対象としています。これは、SSO および内部 AI ゲートウェイと統合された一元化された構成を使用することで実現できます。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
OpenCode は、コードやコンテキスト データを一切保存しません。
|
||||
:::
|
||||
|
||||
OpenCode Enterprise を始めるには:
|
||||
To Enterprise を始めるには:
|
||||
|
||||
1. チーム内でトライアルを実施してください。
|
||||
2. 価格や実装オプションについては、**<a href={email}>お問い合わせ</a>**ください。
|
||||
@@ -154,11 +153,10 @@ npm login --registry=https://your-company.jfrog.io/api/npm/npm-virtual/
|
||||
これにより、認証の詳細を含む `~/.npmrc` が作成されます。 OpenCode は自動的に
|
||||
これを拾ってください。
|
||||
|
||||
:::注意
|
||||
:::caution
|
||||
OpenCode を実行する前に、プライベート レジストリにログインする必要があります。
|
||||
:::
|
||||
|
||||
あるいは、`.npmrc` ファイルを手動で構成することもできます。
|
||||
Alternatively, ファイルを手動で構成することもできます。
|
||||
|
||||
```bash title="~/.npmrc"
|
||||
registry=https://your-company.jfrog.io/api/npm/npm-virtual/
|
||||
|
||||
@@ -11,32 +11,32 @@ OpenCode は、言語固有のフォーマッタを使用してファイルを
|
||||
|
||||
OpenCode には、一般的な言語およびフレームワーク用のいくつかの組み込みフォーマッタが付属しています。以下は、フォーマッタ、サポートされているファイル拡張子、および必要なコマンドまたは構成オプションのリストです。
|
||||
|
||||
| フォーマッタ | 拡張機能 | 要件 |
|
||||
| ---------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ---------------- |
|
||||
| ゴーフムト | .go | `gofmt` コマンドが利用可能 |
|
||||
| ミックス | .ex、.exs、.eex、.heex、.leex、.neex、.sface | `mix` コマンドが利用可能 |
|
||||
| よりきれい | .js、.jsx、.ts、.tsx、.html、.css、.md、.json、.yaml、および [more](https://prettier.io/docs/en/index.html) | `package.json` における `prettier` の依存関係 |
|
||||
| バイオーム | .js、.jsx、.ts、.tsx、.html、.css、.md、.json、.yaml、および [more](https://biomejs.dev/) | `biome.json(c)` 設定ファイル |
|
||||
| ジグ | .zig、.zon | `zig` コマンドが利用可能 |
|
||||
| クラン形式 | .c、.cpp、.h、.hpp、.ino、および [more](https://clang.llvm.org/docs/ClangFormat.html) | `.clang-format` 設定ファイル |
|
||||
| クトリント | .kt、.kts | `ktlint` コマンドが利用可能 |
|
||||
| ラフ | .py、.pyi | `ruff` コマンドは config | で使用可能です。 |
|
||||
| さびと.rs | `rustfmt` コマンドが利用可能 |
|
||||
| カーゴフムト | .rs | `cargo fmt` コマンドが利用可能 |
|
||||
| 紫外線 | .py、.pyi | `uv` コマンドが利用可能 |
|
||||
| ロボコップ | .rb、.rake、.gemspec、.ru | `rubocop` コマンドが利用可能 |
|
||||
| 標準RB | .rb、.rake、.gemspec、.ru | `standardrb` コマンドが利用可能 |
|
||||
| htmlビューティー | .erb、.html.erb | `htmlbeautifier` コマンドが利用可能 |
|
||||
| 空気 | .R | `air` コマンドが利用可能 |
|
||||
| ダーツ | .ダーツ | `dart` コマンドが利用可能 |
|
||||
| ocaml形式 | .ml、.mli | 利用可能な `ocamlformat` コマンドと `.ocamlformat` 設定ファイル |
|
||||
| テラフォーム | .tf、.tfvars | `terraform` コマンドが利用可能 |
|
||||
| 輝く.gleam | `gleam` コマンドが利用可能 |
|
||||
| ニクスフムト | .nix | `nixfmt` コマンドが利用可能 |
|
||||
| シュフムト | .sh、.bash | `shfmt` コマンドが利用可能 |
|
||||
| パイント | .php | `composer.json` における `laravel/pint` の依存関係 |
|
||||
| oxfmt (実験的) | .js、.jsx、.ts、.tsx | `package.json` の `oxfmt` 依存関係と [実験用環境変数 flag](/docs/cli/#experimental) |
|
||||
| オルモル | .hs | `ormolu` コマンドが利用可能 |
|
||||
| Formatter | Extensions | Requirements |
|
||||
| -------------------- | -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
|
||||
| gofmt | .go | `gofmt` command available |
|
||||
| mix | .ex, .exs, .eex, .heex, .leex, .neex, .sface | `mix` command available |
|
||||
| prettier | .js, .jsx, .ts, .tsx, .html, .css, .md, .json, .yaml, and [more](https://prettier.io/docs/en/index.html) | `prettier` dependency in `package.json` |
|
||||
| biome | .js, .jsx, .ts, .tsx, .html, .css, .md, .json, .yaml, and [more](https://biomejs.dev/) | `biome.json(c)` config file |
|
||||
| zig | .zig, .zon | `zig` command available |
|
||||
| clang-format | .c, .cpp, .h, .hpp, .ino, and [more](https://clang.llvm.org/docs/ClangFormat.html) | `.clang-format` config file |
|
||||
| ktlint | .kt, .kts | `ktlint` command available |
|
||||
| ruff | .py, .pyi | `ruff` command available with config |
|
||||
| rustfmt | .rs | `rustfmt` command available |
|
||||
| cargofmt | .rs | `cargo fmt` command available |
|
||||
| uv | .py, .pyi | `uv` command available |
|
||||
| rubocop | .rb, .rake, .gemspec, .ru | `rubocop` command available |
|
||||
| standardrb | .rb, .rake, .gemspec, .ru | `standardrb` command available |
|
||||
| htmlbeautifier | .erb, .html.erb | `htmlbeautifier` command available |
|
||||
| air | .R | `air` command available |
|
||||
| dart | .dart | `dart` command available |
|
||||
| ocamlformat | .ml, .mli | `ocamlformat` command available and `.ocamlformat` config file |
|
||||
| terraform | .tf, .tfvars | `terraform` command available |
|
||||
| gleam | .gleam | `gleam` command available |
|
||||
| nixfmt | .nix | `nixfmt` command available |
|
||||
| shfmt | .sh, .bash | `shfmt` command available |
|
||||
| pint | .php | `laravel/pint` dependency in `composer.json` |
|
||||
| oxfmt (Experimental) | .js, .jsx, .ts, .tsx | `oxfmt` dependency in `package.json` and an [experimental env variable flag](/docs/cli/#experimental) |
|
||||
| ormolu | .hs | `ormolu` command available |
|
||||
|
||||
したがって、プロジェクトの `package.json` に `prettier` が含まれている場合、OpenCode は自動的にそれを使用します。
|
||||
|
||||
|
||||
@@ -64,10 +64,9 @@ OpenCode は GitLab ワークフローと統合します。
|
||||
|
||||
OpenCode は GitLab CI/CD パイプラインで実行されます。セットアップするには次のものが必要です。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
最新の手順については、[**GitLab ドキュメント**](https://docs.gitlab.com/user/duo_agent_platform/agent_assistant/) を参照してください。
|
||||
:::
|
||||
|
||||
1. GitLab 環境を構成する
|
||||
2. CI/CD のセットアップ
|
||||
3. AI モデル プロバイダー API キーを取得する
|
||||
@@ -160,10 +159,9 @@ OpenCode は GitLab CI/CD パイプラインで実行されます。セットア
|
||||
|
||||
GitLab で OpenCode を使用する方法の例をいくつか示します。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
`@opencode` とは異なるトリガー フレーズを使用するように設定できます。
|
||||
:::
|
||||
|
||||
- **問題の説明**
|
||||
|
||||
このコメントを GitLab の問題に追加します。
|
||||
|
||||
@@ -182,7 +182,7 @@ opencode
|
||||
これにより、OpenCode がプロジェクトを分析し、`AGENTS.md` ファイルを作成します。
|
||||
プロジェクトのルート。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
プロジェクトの `AGENTS.md` ファイルを Git にコミットする必要があります。
|
||||
:::
|
||||
|
||||
@@ -205,7 +205,7 @@ help.
|
||||
|
||||
OpenCode にコードベースの説明を依頼できます。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
プロジェクト内のファイルをあいまい検索するには、`@` キーを使用します。
|
||||
:::
|
||||
|
||||
@@ -243,7 +243,7 @@ From this screen, the user can undelete a note or permanently delete it.
|
||||
自分が何を望んでいるのかを理解するために、OpenCode に十分な詳細を提供したいと考えています。役に立ちます
|
||||
チームの若手開発者と話しているように話すことができます。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
OpenCode に多くのコンテキストと例を提供して、意図する内容を理解できるようにします。
|
||||
want.
|
||||
:::
|
||||
@@ -257,7 +257,7 @@ We'd like to design this new screen using a design I've used before.
|
||||
[Image #1] Take a look at this image and use it as a reference.
|
||||
```
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
画像をターミナルにドラッグ アンド ドロップして、プロンプトに追加します。
|
||||
:::
|
||||
|
||||
@@ -321,7 +321,7 @@ Can you refactor the function in @packages/functions/src/api/index.ts?
|
||||
|
||||
ここからプロンプトを調整し、OpenCode に再試行を依頼できます。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
`/undo` を複数回実行すると、複数の変更を元に戻すことができます。
|
||||
:::
|
||||
|
||||
@@ -344,7 +344,7 @@ OpenCode との会話は [他のユーザーと共有できます]
|
||||
|
||||
これにより、現在の会話へのリンクが作成され、クリップボードにコピーされます。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
会話はデフォルトでは共有されません。
|
||||
:::
|
||||
|
||||
|
||||
@@ -11,47 +11,46 @@ OpenCode は言語サーバー プロトコル (LSP) と統合して、LLM が
|
||||
|
||||
OpenCode には、一般的な言語用のいくつかの組み込み LSP サーバーが付属しています。
|
||||
|
||||
| LSPサーバー | 拡張機能 | 要件 |
|
||||
| --------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------- |
|
||||
| アストロ | .astro | Astro プロジェクトの自動インストール |
|
||||
| バッシュ | .sh、.bash、.zsh、.ksh | bash-lang-server を自動インストールします。 |
|
||||
| クランド | .c、.cpp、.cc、.cxx、.c++、.h、.hpp、.hh、.hxx、.h++ | C/C++ プロジェクトの自動インストール |
|
||||
| シーシャープ | .cs | `.NET SDK` がインストールされました |
|
||||
| clojure-lsp | .clj、.cljs、.cljc、.edn | `clojure-lsp` コマンドが利用可能 |
|
||||
| ダーツ | .ダーツ | `dart` コマンドが利用可能 |
|
||||
| デノ | .ts、.tsx、.js、.jsx、.mjs | `deno` コマンドが利用可能 (deno.json/deno.jsonc を自動検出) |
|
||||
| エリクサーLS | .ex、.exs | `elixir` コマンドが利用可能 |
|
||||
| エスリント | .ts、.tsx、.js、.jsx、.mjs、.cjs、.mts、.cts、.vue | プロジェクト内の `eslint` 依存関係 |
|
||||
| フシャープ | .fs、.fsi、.fsx、.fsscript | `.NET SDK` がインストールされました |
|
||||
| 輝く.gleam | `gleam` コマンドが利用可能 |
|
||||
| ゴップル | .go | `go` コマンドが利用可能 |
|
||||
| HLS | .hs、.lhs | `haskell-language-server-wrapper` コマンドが利用可能 |
|
||||
| jdtls | .java | `Java SDK (version 21+)` がインストールされました |
|
||||
| kotlin-ls | .kt、.kts | Kotlin プロジェクトの自動インストール |
|
||||
| ルアール | .lua | Lua プロジェクトの自動インストール |
|
||||
| ニクスド | .nix | `nixd` コマンドが利用可能 |
|
||||
| ocaml-lsp | .ml、.mli | `ocamllsp` コマンドが利用可能 |
|
||||
| オックスリント | .ts、.tsx、.js、.jsx、.mjs、.cjs、.mts、.cts、.vue、.astro、.svelte | プロジェクト内の `oxlint` 依存関係 |
|
||||
| php インテルフェンス | .php | PHP プロジェクトの自動インストール |
|
||||
| プリズマ | .プリズム | `prisma` コマンドが利用可能 |
|
||||
| 著作権 | .py、.pyi | `pyright` 依存関係がインストールされました |
|
||||
| Ruby-LSP (ルボコップ) | .rb、.rake、.gemspec、.ru | `ruby` および `gem` コマンドが利用可能 |
|
||||
| さび | .rs | `rust-analyzer` コマンドが利用可能 |
|
||||
| ソースキット-lsp | .swift、.objc、.objcpp | `swift` がインストールされています (macOS では `xcode`)。 |
|
||||
| 細い | .svelte | Svelte プロジェクトの自動インストール |
|
||||
| テラフォーム | .tf、.tfvars | GitHub リリースからの自動インストール |
|
||||
| タイニーミスト | .typ、.typc | GitHub リリースからの自動インストール |
|
||||
| タイプスクリプト | .ts、.tsx、.js、.jsx、.mjs、.cjs、.mts、.cts | プロジェクト内の `typescript` 依存関係 |
|
||||
| ビュー | .vue | Vue プロジェクトの自動インストール |
|
||||
| yaml-ls | .yaml、.yml | Red Hat yaml-lang-server を自動インストールします。 |
|
||||
| zls | .zig、.zon | `zig` コマンドが利用可能 |
|
||||
| LSP Server | Extensions | Requirements |
|
||||
| ------------------ | ------------------------------------------------------------------- | ------------------------------------------------------------ |
|
||||
| astro | .astro | Auto-installs for Astro projects |
|
||||
| bash | .sh, .bash, .zsh, .ksh | Auto-installs bash-language-server |
|
||||
| clangd | .c, .cpp, .cc, .cxx, .c++, .h, .hpp, .hh, .hxx, .h++ | Auto-installs for C/C++ projects |
|
||||
| csharp | .cs | `.NET SDK` installed |
|
||||
| clojure-lsp | .clj, .cljs, .cljc, .edn | `clojure-lsp` command available |
|
||||
| dart | .dart | `dart` command available |
|
||||
| deno | .ts, .tsx, .js, .jsx, .mjs | `deno` command available (auto-detects deno.json/deno.jsonc) |
|
||||
| elixir-ls | .ex, .exs | `elixir` command available |
|
||||
| eslint | .ts, .tsx, .js, .jsx, .mjs, .cjs, .mts, .cts, .vue | `eslint` dependency in project |
|
||||
| fsharp | .fs, .fsi, .fsx, .fsscript | `.NET SDK` installed |
|
||||
| gleam | .gleam | `gleam` command available |
|
||||
| gopls | .go | `go` command available |
|
||||
| hls | .hs, .lhs | `haskell-language-server-wrapper` command available |
|
||||
| jdtls | .java | `Java SDK (version 21+)` installed |
|
||||
| kotlin-ls | .kt, .kts | Auto-installs for Kotlin projects |
|
||||
| lua-ls | .lua | Auto-installs for Lua projects |
|
||||
| nixd | .nix | `nixd` command available |
|
||||
| ocaml-lsp | .ml, .mli | `ocamllsp` command available |
|
||||
| oxlint | .ts, .tsx, .js, .jsx, .mjs, .cjs, .mts, .cts, .vue, .astro, .svelte | `oxlint` dependency in project |
|
||||
| php intelephense | .php | Auto-installs for PHP projects |
|
||||
| prisma | .prisma | `prisma` command available |
|
||||
| pyright | .py, .pyi | `pyright` dependency installed |
|
||||
| ruby-lsp (rubocop) | .rb, .rake, .gemspec, .ru | `ruby` and `gem` commands available |
|
||||
| rust | .rs | `rust-analyzer` command available |
|
||||
| sourcekit-lsp | .swift, .objc, .objcpp | `swift` installed (`xcode` on macOS) |
|
||||
| svelte | .svelte | Auto-installs for Svelte projects |
|
||||
| terraform | .tf, .tfvars | Auto-installs from GitHub releases |
|
||||
| tinymist | .typ, .typc | Auto-installs from GitHub releases |
|
||||
| typescript | .ts, .tsx, .js, .jsx, .mjs, .cjs, .mts, .cts | `typescript` dependency in project |
|
||||
| vue | .vue | Auto-installs for Vue projects |
|
||||
| yaml-ls | .yaml, .yml | Auto-installs Red Hat yaml-language-server |
|
||||
| zls | .zig, .zon | `zig` command available |
|
||||
|
||||
上記のファイル拡張子のいずれかが検出され、要件が満たされると、LSP サーバーは自動的に有効になります。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
`OPENCODE_DISABLE_LSP_DOWNLOAD` 環境変数を `true` に設定すると、LSP サーバーの自動ダウンロードを無効にできます。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
## 仕組み
|
||||
@@ -126,10 +125,9 @@ LSP サーバーの起動時に `env` プロパティを使用して環境変数
|
||||
}
|
||||
```
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
初期化オプションは LSP サーバーによって異なります。利用可能なオプションについては、LSP サーバーのドキュメントを確認してください。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
### LSPサーバーの無効化
|
||||
|
||||
@@ -13,11 +13,10 @@ MCP ツールを追加すると、組み込みツールとともに LLM で自
|
||||
|
||||
MCP サーバーを使用すると、コンテキストが追加されます。多くのツールがある場合、これはすぐに増加する可能性があります。したがって、使用する MCP サーバーには注意することをお勧めします。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
MCP サーバーはコンテキストに追加されるため、どのサーバーを有効にするかには注意してください。
|
||||
:::
|
||||
|
||||
GitHub MCP サーバーなどの特定の MCP サーバーは、大量のトークンを追加する傾向があり、コンテキスト制限を簡単に超える可能性があります。
|
||||
Certain MCP サーバーなどの特定の MCP サーバーは、大量のトークンを追加する傾向があり、コンテキスト制限を簡単に超える可能性があります。
|
||||
|
||||
---
|
||||
|
||||
@@ -266,12 +265,12 @@ opencode mcp logout my-oauth-server
|
||||
|
||||
#### OAuth オプション
|
||||
|
||||
| オプション | タイプ | 説明 |
|
||||
| -------------- | ----------------- | -------------------------------------------------------------------------------- |
|
||||
| `oauth` | オブジェクト \|偽 | OAuth 構成オブジェクト、または `false` を使用して OAuth 自動検出を無効にします。 |
|
||||
| `clientId` | 文字列 | OAuth クライアント ID。指定しない場合は、動的クライアント登録が試行されます。 |
|
||||
| `clientSecret` | 文字列 | OAuth クライアント シークレット (認可サーバーで必要な場合)。 |
|
||||
| `scope` | 文字列 | 認可中にリクエストする OAuth スコープ。 |
|
||||
| Option | Type | Description |
|
||||
| -------------- | --------------- | -------------------------------------------------------------------------------- |
|
||||
| `oauth` | Object \| false | OAuth config object, or `false` to disable OAuth auto-detection. |
|
||||
| `clientId` | String | OAuth client ID. If not provided, dynamic client registration will be attempted. |
|
||||
| `clientSecret` | String | OAuth client secret, if required by the authorization server. |
|
||||
| `scope` | String | OAuth scopes to request during authorization. |
|
||||
|
||||
#### デバッグ
|
||||
|
||||
@@ -383,7 +382,7 @@ MCP は、組み込みツールと並んで、OpenCode のツールとして利
|
||||
- `?` は 1 つの文字に正確に一致します
|
||||
- 他のすべての文字は文字通り一致します
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
MCP サーバー ツールはサーバー名をプレフィックスとして登録されているため、サーバーのすべてのツールを無効にするには、次のコマンドを使用するだけです。
|
||||
|
||||
```
|
||||
@@ -391,7 +390,6 @@ MCP サーバー ツールはサーバー名をプレフィックスとして登
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
## 例
|
||||
|
||||
@@ -29,11 +29,10 @@ OpenCode は [AI SDK](https://ai-sdk.dev/) および [Models.dev](https://models
|
||||
|
||||
たくさんのモデルがあり、毎週のように新しいモデルが登場します。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
当社が推奨するモデルのいずれかの使用を検討してください。
|
||||
:::
|
||||
|
||||
ただし、コードの生成とツールの呼び出しの両方に優れているものはほんのわずかです。
|
||||
However,
|
||||
|
||||
ここでは、OpenCode で適切に動作するいくつかのモデルを順不同で示します。 (これは完全なリストではなく、必ずしも最新であるとは限りません):
|
||||
|
||||
@@ -164,10 +163,9 @@ OpenCode には、多くのプロバイダーのデフォルトのバリアン
|
||||
- `low` - 労力/トークン予算の削減
|
||||
- `high` - より高い労力/トークン予算
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
このリストは包括的なものではありません。他の多くのプロバイダーにもデフォルトが組み込まれています。
|
||||
:::
|
||||
|
||||
### カスタムバリアント
|
||||
|
||||
既存のバリアントをオーバーライドすることも、独自のバリアントを追加することもできます。
|
||||
|
||||
@@ -3,12 +3,11 @@ title: モード
|
||||
description: さまざまなユースケースに応じたさまざまなモード。
|
||||
---
|
||||
|
||||
:::注意
|
||||
:::caution
|
||||
モードは、opencode config の `agent` オプションを通じて設定されるようになりました。の
|
||||
`mode` オプションは非推奨になりました。 [詳細はこちら](/docs/agents)。
|
||||
:::
|
||||
|
||||
opencode のモードを使用すると、さまざまなユースケースに合わせて動作、ツール、プロンプトをカスタマイズできます。
|
||||
Modes のモードを使用すると、さまざまなユースケースに合わせて動作、ツール、プロンプトをカスタマイズできます。
|
||||
|
||||
**ビルド** と **プラン** という 2 つの組み込みモードが付属しています。カスタマイズできます
|
||||
これらを使用するか、opencode config を通じて独自の設定を行います。
|
||||
|
||||
@@ -22,11 +22,10 @@ export HTTP_PROXY=http://proxy.example.com:8080
|
||||
export NO_PROXY=localhost,127.0.0.1
|
||||
```
|
||||
|
||||
:::注意
|
||||
:::caution
|
||||
TUI はローカル HTTP サーバーと通信します。ルーティング ループを防ぐには、この接続のプロキシをバイパスする必要があります。
|
||||
:::
|
||||
|
||||
サーバーのポートとホスト名は、[CLI flags](/docs/cli#run).
|
||||
You[CLI flags](/docs/cli#run).
|
||||
|
||||
---
|
||||
|
||||
@@ -38,11 +37,10 @@ TUI はローカル HTTP サーバーと通信します。ルーティング ル
|
||||
export HTTPS_PROXY=http://username:password@proxy.example.com:8080
|
||||
```
|
||||
|
||||
:::注意
|
||||
:::caution
|
||||
パスワードのハードコーディングは避けてください。環境変数または安全な認証情報ストレージを使用します。
|
||||
:::
|
||||
|
||||
NTLM や Kerberos などの高度な認証を必要とするプロキシの場合は、認証方法をサポートする LLM ゲートウェイの使用を検討してください。
|
||||
For や Kerberos などの高度な認証を必要とするプロキシの場合は、認証方法をサポートする LLM ゲートウェイの使用を検討してください。
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -185,10 +185,9 @@ OpenCode が承認を求めるプロンプトを表示すると、UI は 3 つ
|
||||
|
||||
エージェントごとに権限をオーバーライドできます。エージェントの権限はグローバル設定とマージされ、エージェント ルールが優先されます。 [エージェントの権限について詳しくは、](/docs/agents#permissions) をご覧ください。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
パターン マッチングの詳細な例については、上記の「粒度ルール (オブジェクト構文)](#granular-rules-object-syntax)」セクションを参照してください。
|
||||
:::
|
||||
|
||||
```json title="opencode.json"
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
@@ -232,6 +231,6 @@ permission:
|
||||
Only analyze code and suggest changes.
|
||||
```
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
引数のあるコマンドにはパターン マッチングを使用します。 `"grep *"` は `grep pattern file.txt` を許可しますが、`"grep"` だけではブロックされます。 `git status` のようなコマンドはデフォルトの動作で機能しますが、引数を渡すときに明示的な許可 (`"git status *"` など) が必要です。
|
||||
:::
|
||||
|
||||
@@ -234,10 +234,9 @@ export const NotificationPlugin = async ({ project, client, $, directory, worktr
|
||||
|
||||
macOS 上で AppleScript を実行するために `osascript` を使用しています。ここでは通知を送信するために使用しています。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
OpenCode デスクトップ アプリを使用している場合は、応答の準備ができたとき、またはセッション エラーが発生したときにシステム通知を自動的に送信できます。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
### .env 保護
|
||||
|
||||
@@ -53,7 +53,7 @@ config.
|
||||
OpenCode Zen は、OpenCode チームが提供するモデルのリストです。
|
||||
OpenCode で適切に動作することがテストおよび検証されています。 [詳細はこちら](/docs/zen)。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
初めての方は、OpenCode Zen から始めることをお勧めします。
|
||||
:::
|
||||
|
||||
@@ -89,7 +89,7 @@ OpenCode で適切に動作することがテストおよび検証されてい
|
||||
いくつかのプロバイダーを詳しく見てみましょう。プロバイダーを追加したい場合は、
|
||||
リストにある場合は、お気軽に PR を開いてください。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
ここにプロバイダーが表示されない場合は、 PRを送信してください。
|
||||
:::
|
||||
|
||||
@@ -129,7 +129,7 @@ OpenCode で Amazon Bedrock を使用するには:
|
||||
1. Amazon Bedrock コンソールの **モデル カタログ** に移動してリクエストします。
|
||||
必要なモデルにアクセスします。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
Amazon Bedrock で必要なモデルにアクセスできる必要があります。
|
||||
:::
|
||||
|
||||
@@ -181,7 +181,7 @@ export AWS_REGION=us-east-1
|
||||
- `profile` - `~/.aws/credentials` からの AWS 名前付きプロファイル
|
||||
- `endpoint` - VPC エンドポイントのカスタム エンドポイント URL (汎用 `baseURL` オプションのエイリアス)
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
構成ファイルのオプションは環境変数より優先されます。
|
||||
:::
|
||||
|
||||
@@ -204,7 +204,7 @@ Bedrock の VPC エンドポイントを使用している場合:
|
||||
}
|
||||
```
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
`endpoint` オプションは、AWS 固有の用語を使用した汎用の `baseURL` オプションのエイリアスです。 `endpoint` と `baseURL` の両方が指定された場合は、`endpoint` が優先されます。
|
||||
:::
|
||||
|
||||
@@ -222,7 +222,7 @@ Amazon Bedrock は次の認証優先度を使用します。
|
||||
1. **ベアラー トークン** - `AWS_BEARER_TOKEN_BEDROCK` 環境変数または `/connect` コマンドからのトークン
|
||||
2. **AWS 認証情報チェーン** - プロファイル、アクセス キー、共有認証情報、IAM ロール、Web ID トークン (EKS IRSA)、インスタンス メタデータ
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
ベアラー トークンが (`/connect` または `AWS_BEARER_TOKEN_BEDROCK` 経由で) 設定されると、設定されたプロファイルを含むすべての AWS 認証情報方法よりも優先されます。
|
||||
:::
|
||||
|
||||
@@ -232,7 +232,7 @@ Amazon Bedrock は次の認証優先度を使用します。
|
||||
/models
|
||||
```
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
カスタム推論プロファイルの場合、キーでモデルとプロバイダー名を使用し、`id` プロパティを arn に設定します。これにより、正しいキャッシュが保証されます。
|
||||
|
||||
```json title="opencode.json"
|
||||
@@ -281,7 +281,7 @@ Amazon Bedrock は次の認証優先度を使用します。
|
||||
/models
|
||||
```
|
||||
|
||||
:::情報
|
||||
:::info
|
||||
OpenCode での Claude Pro/Max サブスクリプションの使用は、[Anthropic](https://anthropic.com).
|
||||
:::
|
||||
|
||||
@@ -295,7 +295,7 @@ Pro/Max サブスクリプションをお持ちでない場合は、[**API キ
|
||||
|
||||
### Azure OpenAI
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
「申し訳ありませんが、そのリクエストには対応できません」エラーが発生した場合は、Azure リソースのコンテンツ フィルターを **DefaultV2** から **Default** に変更してみてください。
|
||||
:::
|
||||
|
||||
@@ -305,7 +305,7 @@ Pro/Max サブスクリプションをお持ちでない場合は、[**API キ
|
||||
|
||||
2. [Azure AI Foundry](https://ai.azure.com/) に移動し、モデルをデプロイします。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
オープンコードが正しく動作するには、デプロイメント名がモデル名と一致する必要があります。
|
||||
:::
|
||||
|
||||
@@ -352,7 +352,7 @@ export AZURE_RESOURCE_NAME=XXX
|
||||
|
||||
2. [Azure AI Foundry](https://ai.azure.com/) に移動し、モデルをデプロイします。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
オープンコードが正しく動作するには、デプロイメント名がモデル名と一致する必要があります。
|
||||
:::
|
||||
|
||||
@@ -682,7 +682,7 @@ GitLab Duo は、GitLab の Anthropic プロキシを介したネイティブ
|
||||
- **duo-chat-sonnet-4-5** - ほとんどのワークフローでバランスの取れたパフォーマンス
|
||||
- **duo-chat-opus-4-5** - 複雑な分析に最も適した能力
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
必要がない場合は、「GITLAB_TOKEN」環境変数を指定することもできます。
|
||||
トークンをオープンコード認証ストレージに保存します。
|
||||
:::
|
||||
@@ -726,7 +726,7 @@ export GITLAB_AI_GATEWAY_URL=https://ai-gateway.company.com
|
||||
export GITLAB_TOKEN=glpat-...
|
||||
```
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
GitLab 管理者は以下を有効にする必要があります。
|
||||
|
||||
1. [Duo Agent Platform](https://docs.gitlab.com/user/gitlab_duo/turn_on_off/) (ユーザー、グループ、またはインスタンス用)
|
||||
@@ -793,7 +793,7 @@ GitLab ツール (マージ リクエスト、問題、パイプライン、CI/C
|
||||
|
||||
GitHub Copilot サブスクリプションをオープンコードで使用するには:
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
一部のモデルでは [Pro+] が必要になる場合があります。
|
||||
subscription](https://github.com/features/copilot/plans) を使用します。
|
||||
|
||||
@@ -833,7 +833,7 @@ OpenCode で Google Vertex AI を使用するには:
|
||||
1. Google Cloud Console の **Model Garden** に移動し、
|
||||
お住まいの地域で利用可能なモデル。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
Vertex AI API が有効になっている Google Cloud プロジェクトが必要です。
|
||||
:::
|
||||
|
||||
@@ -858,7 +858,7 @@ export GOOGLE_CLOUD_PROJECT=your-project-id
|
||||
export VERTEX_LOCATION=global
|
||||
```
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
`global` 領域は、追加コストなしで可用性を向上させ、エラーを削減します。データ常駐要件には、リージョン エンドポイント (`us-central1` など) を使用します。 [詳細はこちら](https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-partner-models#regional_and_global_endpoints)
|
||||
:::
|
||||
|
||||
@@ -1227,7 +1227,7 @@ Moonshot AI の Kim K2 を使用するには:
|
||||
|
||||
Ollama を通じてローカル モデルを使用するようにオープンコードを構成できます。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
Ollama は OpenCode 用に自動的に構成できます。詳細については、「Ollama 統合 docs](https://docs.ollama.com/integrations/opencode)」を参照してください。
|
||||
:::
|
||||
|
||||
@@ -1259,7 +1259,7 @@ Ollama は OpenCode 用に自動的に構成できます。詳細については
|
||||
- `options.baseURL` はローカル サーバーのエンドポイントです。
|
||||
- `models` は、モデル ID とその構成のマップです。機種選択リストに機種名が表示されます。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
ツール呼び出しが機能しない場合は、Ollama の `num_ctx` を増やしてみてください。 16k〜32kあたりから始めてください。
|
||||
:::
|
||||
|
||||
@@ -1436,7 +1436,7 @@ SAP AI コアは、統合プラットフォームを通じて、OpenAI、Anthrop
|
||||
|
||||
1. [SAP BTP Cockpit](https://account.hana.ondemand.com/) に移動し、SAP AI コア サービス インスタンスに移動して、サービス キーを作成します。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
サービス キーは、`clientid`、`clientsecret`、`url`、および `serviceurls.AI_API_URL` を含む JSON オブジェクトです。 AI コア インスタンスは、BTP コックピットの **サービス** > **インスタンスとサブスクリプション** で見つかります。
|
||||
:::
|
||||
|
||||
@@ -1473,7 +1473,7 @@ export AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","s
|
||||
AICORE_DEPLOYMENT_ID=your-deployment-id AICORE_RESOURCE_GROUP=your-resource-group opencode
|
||||
```
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
これらの設定はオプションであり、SAP AI コアのセットアップに従って構成する必要があります。
|
||||
:::
|
||||
|
||||
@@ -1753,7 +1753,7 @@ Vercel AI Gateway を使用すると、統合エンドポイントを通じて O
|
||||
|
||||
`/connect` コマンドにリストされていない **OpenAI 互換**プロバイダーを追加するには:
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
OpenAI と互換性のある任意のプロバイダーをオープンコードで使用できます。最新の AI プロバイダーのほとんどは、OpenAI 互換の API を提供しています。
|
||||
:::
|
||||
|
||||
@@ -1782,7 +1782,7 @@ OpenAI と互換性のある任意のプロバイダーをオープンコード
|
||||
└
|
||||
```
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
覚えやすい ID を選択してください。これを構成ファイルで使用します。
|
||||
:::
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@ description: オープンコードのカスタム命令を設定します。
|
||||
|
||||
新しい `AGENTS.md` ファイルを作成するには、opencode で `/init` コマンドを実行します。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
プロジェクトの `AGENTS.md` ファイルを Git にコミットする必要があります。
|
||||
:::
|
||||
|
||||
これにより、プロジェクトとそのすべてのコンテンツがスキャンされ、プロジェクトの内容が理解され、それを含む `AGENTS.md` ファイルが生成されます。これは、opencode がプロジェクトをより適切にナビゲートするのに役立ちます。
|
||||
This `AGENTS.md` ファイルが生成されます。これは、opencode がプロジェクトをより適切にナビゲートするのに役立ちます。
|
||||
|
||||
既存の `AGENTS.md` ファイルがある場合、これはそれに追加しようとします。
|
||||
|
||||
@@ -175,6 +174,6 @@ Read the following file immediately as it's relevant to all workflows: @rules/ge
|
||||
- 詳細なガイドラインを参照しながら、AGENTS.md を簡潔に保ちます
|
||||
- opencode が特定のタスクに必要な場合にのみファイルをロードするようにする
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
モノリポジトリまたは共有標準を使用するプロジェクトの場合、グロブ パターン (`packages/*/AGENTS.md` など) で `opencode.json` を使用する方が、手動で指示するよりも保守しやすくなります。
|
||||
:::
|
||||
|
||||
@@ -283,13 +283,13 @@ await client.session.prompt({
|
||||
|
||||
### ファイル
|
||||
|
||||
| 方法 | 説明 | 応答 |
|
||||
| ------------------------- | ---------------------------------------- | ---------------------------------------------------------------------------------------- |
|
||||
| `find.text({ query })` | ファイル内のテキストを検索 | `path`、`lines`、`line_number`、`absolute_offset`、`submatches` の一致オブジェクトの配列 |
|
||||
| `find.files({ query })` | ファイルとディレクトリを名前で検索する | `string[]` (パス) |
|
||||
| `find.symbols({ query })` | ワークスペースのシンボルを検索する | <a href={typesUrl}><code>シンボル[]</code></a> |
|
||||
| `file.read({ query })` | ファイルを読む | `{ type: "raw" \| "patch", content: string }` |
|
||||
| `file.status({ query? })` | 追跡されたファイルのステータスを取得する | <a href={typesUrl}><code>ファイル[]</code></a> |
|
||||
| Method | Description | Response |
|
||||
| ------------------------- | ---------------------------------- | ------------------------------------------------------------------------------------------- |
|
||||
| `find.text({ query })` | Search for text in files | Array of match objects with `path`, `lines`, `line_number`, `absolute_offset`, `submatches` |
|
||||
| `find.files({ query })` | Find files and directories by name | `string[]` (paths) |
|
||||
| `find.symbols({ query })` | Find workspace symbols | <a href={typesUrl}><code>Symbol[]</code></a> |
|
||||
| `file.read({ query })` | Read a file | `{ type: "raw" \| "patch", content: string }` |
|
||||
| `file.status({ query? })` | Get status for tracked files | <a href={typesUrl}><code>File[]</code></a> |
|
||||
|
||||
`find.files` は、いくつかのオプションのクエリ フィールドをサポートしています。
|
||||
|
||||
|
||||
@@ -50,11 +50,10 @@ OPENCODE_SERVER_PASSWORD=your-password opencode serve
|
||||
サーバーと通信するクライアント。サーバーは OpenAPI 3.1 仕様を公開します
|
||||
終点。このエンドポイントは、[SDK](/docs/sdk).
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
opencode サーバーを使用して、プログラムで opencode と対話します。
|
||||
:::
|
||||
|
||||
このアーキテクチャにより、オープンコードで複数のクライアントをサポートできるようになり、プログラムでオープンコードと対話できるようになります。
|
||||
This
|
||||
|
||||
`opencode serve` を実行してスタンドアロン サーバーを起動できます。持っている場合は、
|
||||
opencode TUI を実行すると、`opencode serve` が新しいサーバーを起動します。
|
||||
@@ -274,9 +273,9 @@ opencode サーバーは次の API を公開します。
|
||||
|
||||
### イベント
|
||||
|
||||
| 方法 | パス | 説明 | 応答 |
|
||||
| ----- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ---- |
|
||||
| `GET` | `/event` | サーバーから送信されたイベント ストリーム。最初のイベントは `server.connected` で、次にバス イベントです。サーバー送信イベント ストリーム |
|
||||
| Method | Path | Description | Response |
|
||||
| ------ | -------- | ----------------------------------------------------------------------------- | ------------------------- |
|
||||
| `GET` | `/event` | Server-sent events stream. First event is `server.connected`, then bus events | Server-sent events stream |
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -5,10 +5,9 @@ description: OpenCode での会話を共有します。
|
||||
|
||||
OpenCode の共有機能を使用すると、OpenCode の会話への公開リンクを作成できるため、チームメイトと共同作業したり、他の人から助けを得ることができます。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
共有された会話は、リンクを知っている人なら誰でも公開してアクセスできます。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
## 仕組み
|
||||
|
||||
@@ -25,19 +25,19 @@ OpenCode を使用すると、いくつかの組み込みテーマから 1 つ
|
||||
|
||||
OpenCode にはいくつかの組み込みテーマが付属しています。
|
||||
|
||||
| 名前 | 説明 |
|
||||
| ---------------------- | ---------------------------------------------------------------- | --------------------------------------------------------------- |
|
||||
| `system` | 端末の背景色に適応します |
|
||||
| `tokyonight` | 【Tokyonight](https://github.com/folke/tokyonight.nvim)テーマ |
|
||||
| `everforest` | [Everforest](https://github.com/sainnhe/everforest) テーマ |
|
||||
| `ayu` | [Ayu](https://github.com/ayu-theme) ダークテーマ | ベース] |
|
||||
| `catppuccin` | [Catppuccin](https://github.com/catppuccin) テーマ |
|
||||
| `catppuccin-macchiato` | [Catppuccin](https://github.com/catppuccin) テーマ |
|
||||
| `gruvbox` | [Gruvbox](https://github.com/morhetz/gruvbox) テーマ |
|
||||
| `kanagawa` | 【神奈川](https://github.com/rebelot/kanagawa.nvim)テーマ |
|
||||
| `nord` | [Nord](https://github.com/nordtheme/nord) テーマ |
|
||||
| `matrix` | ハッカースタイルの黒地に緑のテーマ |
|
||||
| `one-dark` | [Atom One](https://github.com/Th3Whit3Wolf/one-nvim) Dark テーマ | Atom One](https://github.com/Th3Whit3Wolf/one-nvim) Dark テーマ |
|
||||
| Name | Description |
|
||||
| ---------------------- | ---------------------------------------------------------------------------- |
|
||||
| `system` | Adapts to your terminal’s background color |
|
||||
| `tokyonight` | Based on the [Tokyonight](https://github.com/folke/tokyonight.nvim) theme |
|
||||
| `everforest` | Based on the [Everforest](https://github.com/sainnhe/everforest) theme |
|
||||
| `ayu` | Based on the [Ayu](https://github.com/ayu-theme) dark theme |
|
||||
| `catppuccin` | Based on the [Catppuccin](https://github.com/catppuccin) theme |
|
||||
| `catppuccin-macchiato` | Based on the [Catppuccin](https://github.com/catppuccin) theme |
|
||||
| `gruvbox` | Based on the [Gruvbox](https://github.com/morhetz/gruvbox) theme |
|
||||
| `kanagawa` | Based on the [Kanagawa](https://github.com/rebelot/kanagawa.nvim) theme |
|
||||
| `nord` | Based on the [Nord](https://github.com/nordtheme/nord) theme |
|
||||
| `matrix` | Hacker-style green on black theme |
|
||||
| `one-dark` | Based on the [Atom One](https://github.com/Th3Whit3Wolf/one-nvim) Dark theme |
|
||||
|
||||
さらに、新しいテーマも常に追加されています。
|
||||
|
||||
|
||||
@@ -94,10 +94,9 @@ OpenCode で利用可能なすべての組み込みツールを次に示しま
|
||||
|
||||
これを使用して、LLM が新しいファイルを作成できるようにします。既存のファイルがすでに存在する場合は上書きされます。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
`write` ツールは、すべてのファイル変更 (`edit`、`write`、`patch`、`multiedit`) をカバーする `edit` 権限によって制御されます。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
### 読む
|
||||
@@ -172,10 +171,9 @@ OpenCode で利用可能なすべての組み込みツールを次に示しま
|
||||
|
||||
構成された LSP サーバーと対話して、定義、参照、ホバー情報、呼び出し階層などのコード インテリジェンス機能を取得します。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
このツールは、`OPENCODE_EXPERIMENTAL_LSP_TOOL=true` (または `OPENCODE_EXPERIMENTAL=true`) の場合にのみ使用できます。
|
||||
:::
|
||||
|
||||
```json title="opencode.json" {4}
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
@@ -206,10 +204,9 @@ OpenCode で利用可能なすべての組み込みツールを次に示しま
|
||||
|
||||
このツールは、コードベースにパッチ ファイルを適用します。さまざまなソースからの差分やパッチを適用するのに役立ちます。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
`write` ツールは、すべてのファイル変更 (`edit`、`write`、`patch`、`multiedit`) をカバーする `edit` 権限によって制御されます。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
### スキル
|
||||
@@ -242,10 +239,9 @@ OpenCode で利用可能なすべての組み込みツールを次に示しま
|
||||
|
||||
タスク リストを作成および更新して、複雑な操作中の進行状況を追跡します。 LLM はこれを使用して、複数ステップのタスクを整理します。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
このツールはデフォルトではサブエージェントに対して無効になっていますが、手動で有効にすることができます。 [詳細はこちら](/docs/agents/#permissions)
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
### トドリード
|
||||
@@ -263,10 +259,9 @@ OpenCode で利用可能なすべての組み込みツールを次に示しま
|
||||
|
||||
現在の Todo リストの状態を読み取ります。どのタスクが保留中または完了しているかを追跡するために LLM によって使用されます。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
このツールはデフォルトではサブエージェントに対して無効になっていますが、手動で有効にすることができます。 [詳細はこちら](/docs/agents/#permissions)
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
### ウェブフェッチ
|
||||
@@ -290,7 +285,7 @@ LLM が Web ページをフェッチして読み取ることを許可します
|
||||
|
||||
ウェブで情報を検索してください。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
このツールは、OpenCode プロバイダーを使用している場合、または `OPENCODE_ENABLE_EXA` 環境変数が真実の値 (`true` または `1` など) に設定されている場合にのみ使用できます。
|
||||
|
||||
OpenCode の起動時に有効にするには:
|
||||
@@ -300,7 +295,6 @@ OPENCODE_ENABLE_EXA=1 opencode
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
```json title="opencode.json" {4}
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
@@ -314,10 +308,9 @@ Exa AI を使用して Web 検索を実行し、オンラインで関連情報
|
||||
|
||||
API キーは必要ありません。ツールは認証なしで Exa AI のホストされた MCP サービスに直接接続します。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
情報を見つける必要がある場合 (検出)、`websearch` を使用し、特定の URL からコンテンツを取得する必要がある場合 (取得) は `webfetch` を使用します。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
### 質問
|
||||
|
||||
@@ -31,10 +31,9 @@ Give me a quick summary of the codebase.
|
||||
|
||||
`@` を使用してメッセージ内のファイルを参照できます。これにより、現在の作業ディレクトリ内であいまいなファイル検索が行われます。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
`@` を使用してメッセージ内のファイルを参照することもできます。
|
||||
:::
|
||||
|
||||
```text "@packages/functions/src/api/index.ts"
|
||||
How is auth handled in @packages/functions/src/api/index.ts?
|
||||
```
|
||||
@@ -191,11 +190,10 @@ OpenCodeを終了します。 _エイリアス_: `/quit`、`/q`
|
||||
|
||||
以前に取り消したメッセージをやり直します。 `/undo` を使用した後にのみ使用できます。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
ファイルの変更も復元されます。
|
||||
:::
|
||||
|
||||
内部的には、Git を使用してファイルの変更を管理します。したがって、あなたのプロジェクトは ** する必要があります
|
||||
Internally, を使用してファイルの変更を管理します。したがって、あなたのプロジェクトは ** する必要があります
|
||||
Git リポジトリ** であること。
|
||||
|
||||
```bash frame="none"
|
||||
@@ -246,10 +244,9 @@ Git リポジトリ** であること。
|
||||
|
||||
会話内の思考/推論ブロックの表示を切り替えます。有効にすると、拡張思考をサポートするモデルの推論プロセスを確認できます。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
このコマンドは、思考ブロックを**表示**するかどうかのみを制御します。モデルの推論機能を有効または無効にすることはありません。実際の推論機能を切り替えるには、`ctrl+t` を使用してモデル バリアントを循環させます。
|
||||
:::
|
||||
|
||||
```bash frame="none"
|
||||
/thinking
|
||||
```
|
||||
@@ -260,11 +257,10 @@ Git リポジトリ** であること。
|
||||
|
||||
会話の最後のメッセージを元に戻します。最新のユーザー メッセージ、その後のすべての応答、およびファイルの変更を削除します。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
加えられたファイルの変更も元に戻されます。
|
||||
:::
|
||||
|
||||
内部的には、Git を使用してファイルの変更を管理します。したがって、あなたのプロジェクトは ** する必要があります
|
||||
Internally, を使用してファイルの変更を管理します。したがって、あなたのプロジェクトは ** する必要があります
|
||||
Git リポジトリ** であること。
|
||||
|
||||
```bash frame="none"
|
||||
@@ -345,11 +341,10 @@ Git リポジトリ** であること。
|
||||
- `notepad` - Windows メモ帳
|
||||
- `subl` - 崇高なテキスト
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
VS Code などの一部のエディターは、`--wait` フラグを使用して起動する必要があります。
|
||||
:::
|
||||
|
||||
一部のエディターは、ブロッキング モードで実行するためにコマンドライン引数が必要です。 `--wait` フラグにより、エディターは閉じられるまでプロセスをブロックします。
|
||||
Some モードで実行するためにコマンドライン引数が必要です。 `--wait` フラグにより、エディターは閉じられるまでプロセスをブロックします。
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -17,14 +17,11 @@ opencode web
|
||||
|
||||
これにより、利用可能なランダムなポートを使用して `127.0.0.1` でローカル サーバーが起動され、デフォルトのブラウザで OpenCode が自動的に開きます。
|
||||
|
||||
:::注意
|
||||
:::caution
|
||||
`OPENCODE_SERVER_PASSWORD` が設定されていない場合、サーバーは保護されません。これはローカルで使用する場合には問題ありませんが、ネットワーク アクセス用に設定する必要があります。
|
||||
:::
|
||||
|
||||
:::tip[Windows ユーザー]
|
||||
最高のエクスペリエンスを得るには、PowerShell ではなく [WSL](/docs/windows-wsl) から `opencode web` を実行します。これにより、ファイル システムへの適切なアクセスと端末の統合が保証されます。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
## 構成
|
||||
|
||||
@@ -10,7 +10,6 @@ OpenCode は Windows で直接実行できますが、より快適に使うに
|
||||
:::tip[WSL を使う理由]
|
||||
WSL を使うと、ファイルシステム性能、端末サポート、OpenCode が依存する開発ツールとの互換性が向上します。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
## セットアップ
|
||||
@@ -60,8 +59,6 @@ OpenCode Desktop アプリを使いつつ、サーバーは WSL で動かした
|
||||
|
||||
:::note
|
||||
環境によって `localhost` が使えない場合は、WSL 側で `hostname -I` を実行して IP アドレスを確認し、`http://<wsl-ip>:4096` に接続してください。
|
||||
:::
|
||||
|
||||
:::caution
|
||||
`--hostname 0.0.0.0` を使う場合は、`OPENCODE_SERVER_PASSWORD` を設定してサーバーを保護してください。
|
||||
|
||||
@@ -70,8 +67,7 @@ OPENCODE_SERVER_PASSWORD=your-password opencode serve --hostname 0.0.0.0
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
---
|
||||
```bash
|
||||
|
||||
## Web クライアント + WSL
|
||||
|
||||
@@ -109,7 +105,6 @@ opencode
|
||||
:::tip
|
||||
よりスムーズに使うには、リポジトリを WSL のファイルシステム(例: `~/code/`)にクローンまたはコピーして、そこで OpenCode を実行することをおすすめします。
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
## ヒント
|
||||
|
||||
@@ -9,10 +9,9 @@ export const email = `mailto:${config.email}`
|
||||
|
||||
OpenCode Zen は、OpenCode チームによって提供される、テストおよび検証されたモデルのリストです。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
OpenCode Zen は現在ベータ版です。
|
||||
:::
|
||||
|
||||
Zen は OpenCode の他のプロバイダーと同様に機能します。 OpenCode Zen にログインすると、
|
||||
API キー。これは **完全にオプション** であり、使用するために使用する必要はありません。
|
||||
OpenCode.
|
||||
@@ -25,11 +24,10 @@ OpenCode.
|
||||
これらのモデルはコーディング エージェントとしてうまく機能します。さらに、ほとんどのプロバイダーは、
|
||||
構成が大きく異なります。したがって、まったく異なるパフォーマンスと品質が得られます。
|
||||
|
||||
:::ヒント
|
||||
:::tip
|
||||
私たちは、OpenCode で適切に動作するモデルとプロバイダーの選択されたグループをテストしました。
|
||||
:::
|
||||
|
||||
したがって、OpenRouter などを通じてモデルを使用している場合は、決してそうすることはできません。
|
||||
So などを通じてモデルを使用している場合は、決してそうすることはできません。
|
||||
必要なモデルの最高のバージョンを入手しているかどうかを確認してください。
|
||||
|
||||
これを修正するために、いくつかのことを行いました。
|
||||
@@ -62,37 +60,37 @@ OpenCode Zen は、OpenCode の他のプロバイダーと同様に機能しま
|
||||
|
||||
次の API エンドポイントを通じてモデルにアクセスすることもできます。
|
||||
|
||||
| モデル | モデルID | エンドポイント | AI SDK パッケージ |
|
||||
| ----------------------------- | ---------------------- | -------------------------------------------------- | --------------------------- |
|
||||
| GPT5.2 | gpt-5.2 | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.2 コーデックス | gpt-5.2-コーデックス | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT5.1 | gpt-5.1 | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.1 コーデックス | gpt-5.1-コーデックス | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.1 コーデックス マックス | gpt-5.1-codex-max | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.1 コーデックス ミニ | gpt-5.1-codex-mini | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT5 | gpt-5 | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5 コーデックス | gpt-5-コーデックス | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT5ナノ | gpt-5-nano | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| クロード・ソネット 4.5 | クロード・ソネット-4-5 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| クロード・ソネット 4 | クロード・ソネット4 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| クロード俳句 4.5 | クロード俳句-4-5 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| クロード俳句 3.5 | クロード-3-5-俳句 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| クロード作品4.6 | クロード作品4-6 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| クロード作品4.5 | クロード作品4-5 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| クロード作品4.1 | クロード-作品-4-1 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| ジェミニ 3 プロ | ジェミニ-3-プロ | `https://opencode.ai/zen/v1/models/gemini-3-pro` | `@ai-sdk/google` |
|
||||
| ジェミニ 3 フラッシュ | ジェミニ-3-フラッシュ | `https://opencode.ai/zen/v1/models/gemini-3-flash` | `@ai-sdk/google` |
|
||||
| ミニマックス M2.1 | ミニマックス-m2.1 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| MiniMax M2.1 無料 | ミニマックス-m2.1-無料 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| GLM 4.7 | glm-4.7 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| GLM 4.7 無料 | glm-4.7-無料 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| GLM 4.6 | glm-4.6 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| キミK2.5 | きみk2.5 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| キミ K2.5 無料 | kimi-k2.5-free | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| キミ K2 思考 | kimi-k2-思考 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| キミ K2 | きみk2 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Qwen3 コーダー 480B | qwen3 コーダー | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| ビッグピクルス | ビッグピクルス | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Model | Model ID | Endpoint | AI SDK Package |
|
||||
| ------------------ | ------------------ | -------------------------------------------------- | --------------------------- |
|
||||
| GPT 5.2 | gpt-5.2 | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.2 Codex | gpt-5.2-codex | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.1 | gpt-5.1 | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.1 Codex | gpt-5.1-codex | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.1 Codex Max | gpt-5.1-codex-max | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.1 Codex Mini | gpt-5.1-codex-mini | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5 | gpt-5 | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5 Codex | gpt-5-codex | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5 Nano | gpt-5-nano | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| Claude Sonnet 4.5 | claude-sonnet-4-5 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Sonnet 4 | claude-sonnet-4 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Haiku 4.5 | claude-haiku-4-5 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Haiku 3.5 | claude-3-5-haiku | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Opus 4.6 | claude-opus-4-6 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Opus 4.5 | claude-opus-4-5 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Claude Opus 4.1 | claude-opus-4-1 | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| Gemini 3 Pro | gemini-3-pro | `https://opencode.ai/zen/v1/models/gemini-3-pro` | `@ai-sdk/google` |
|
||||
| Gemini 3 Flash | gemini-3-flash | `https://opencode.ai/zen/v1/models/gemini-3-flash` | `@ai-sdk/google` |
|
||||
| MiniMax M2.1 | minimax-m2.1 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| MiniMax M2.1 Free | minimax-m2.1-free | `https://opencode.ai/zen/v1/messages` | `@ai-sdk/anthropic` |
|
||||
| GLM 4.7 | glm-4.7 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| GLM 4.7 Free | glm-4.7-free | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| GLM 4.6 | glm-4.6 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2.5 | kimi-k2.5 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2.5 Free | kimi-k2.5-free | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2 Thinking | kimi-k2-thinking | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2 | kimi-k2 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Qwen3 Coder 480B | qwen3-coder | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Big Pickle | big-pickle | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
|
||||
OpenCode 設定の [model id](/docs/config/#models)
|
||||
`opencode/<model-id>` 形式を使用します。たとえば、GPT 5.2 Codex の場合は、次のようになります。
|
||||
@@ -114,49 +112,48 @@ https://opencode.ai/zen/v1/models
|
||||
|
||||
当社は従量課金制モデルをサポートしています。以下は **100 万トークンあたりの価格**です。
|
||||
|
||||
| モデル | 入力 | 出力 | キャッシュされた読み取り | キャッシュされた書き込み |
|
||||
| ---------------------------------------- | ------ | ------ | ------------------------ | ------------------------ |
|
||||
| ビッグピクルス | 無料 | 無料 | 無料 | - |
|
||||
| MiniMax M2.1 無料 | 無料 | 無料 | 無料 | - |
|
||||
| ミニマックス M2.1 | $0.30 | $1.20 | $0.10 | - |
|
||||
| GLM 4.7 無料 | 無料 | 無料 | 無料 | - |
|
||||
| GLM 4.7 | $0.60 | $2.20 | $0.10 | - |
|
||||
| GLM 4.6 | $0.60 | $2.20 | $0.10 | - |
|
||||
| キミ K2.5 無料 | 無料 | 無料 | 無料 | - |
|
||||
| キミK2.5 | $0.60 | $3.00 | $0.08 | - |
|
||||
| キミ K2 思考 | $0.40 | $2.50 | - | - |
|
||||
| キミK2 | $0.40 | $2.50 | - | - |
|
||||
| Qwen3 コーダー 480B | $0.45 | $1.50 | - | - |
|
||||
| クロード・ソネット 4.5 (≤ 200K トークン) | $3.00 | $15.00 | $0.30 | $3.75 |
|
||||
| クロード・ソネット 4.5 (> 200K トークン) | $6.00 | $22.50 | $0.60 | $7.50 |
|
||||
| クロード・ソネット 4 (≤ 200K トークン) | $3.00 | $15.00 | $0.30 | $3.75 |
|
||||
| クロード・ソネット 4 (> 200K トークン) | $6.00 | $22.50 | $0.60 | $7.50 |
|
||||
| クロード俳句 4.5 | $1.00 | $5.00 | $0.10 | $1.25 |
|
||||
| クロード俳句 3.5 | $0.80 | $4.00 | $0.08 | $1.00 |
|
||||
| クロード オーパス 4.6 (≤ 200K トークン) | $5.00 | $25.00 | $0.50 | $6.25 |
|
||||
| クロード オーパス 4.6 (> 200K トークン) | $10.00 | $37.50 | $1.00 | $12.50 |
|
||||
| クロード作品4.5 | $5.00 | $25.00 | $0.50 | $6.25 |
|
||||
| クロード作品4.1 | $15.00 | $75.00 | $1.50 | $18.75 |
|
||||
| Gemini 3 Pro (≤ 200K トークン) | $2.00 | $12.00 | $0.20 | - |
|
||||
| Gemini 3 Pro (> 200K トークン) | $4.00 | $18.00 | $0.40 | - |
|
||||
| ジェミニ 3 フラッシュ | $0.50 | $3.00 | $0.05 | - |
|
||||
| GPT5.2 | $1.75 | $14.00 | $0.175 | - |
|
||||
| GPT 5.2 コーデックス | $1.75 | $14.00 | $0.175 | - |
|
||||
| GPT5.1 | $1.07 | $8.50 | $0.107 | - |
|
||||
| GPT 5.1 コーデックス | $1.07 | $8.50 | $0.107 | - |
|
||||
| GPT 5.1 コーデックス マックス | $1.25 | $10.00 | $0.125 | - |
|
||||
| GPT 5.1 コーデックス ミニ | $0.25 | $2.00 | $0.025 | - |
|
||||
| GPT5 | $1.07 | $8.50 | $0.107 | - |
|
||||
| GPT 5 コーデックス | $1.07 | $8.50 | $0.107 | - |
|
||||
| GPT5ナノ | 無料 | 無料 | 無料 | - |
|
||||
| Model | Input | Output | Cached Read | Cached Write |
|
||||
| --------------------------------- | ------ | ------ | ----------- | ------------ |
|
||||
| Big Pickle | Free | Free | Free | - |
|
||||
| MiniMax M2.1 Free | Free | Free | Free | - |
|
||||
| MiniMax M2.1 | $0.30 | $1.20 | $0.10 | - |
|
||||
| GLM 4.7 Free | Free | Free | Free | - |
|
||||
| GLM 4.7 | $0.60 | $2.20 | $0.10 | - |
|
||||
| GLM 4.6 | $0.60 | $2.20 | $0.10 | - |
|
||||
| Kimi K2.5 Free | Free | Free | Free | - |
|
||||
| Kimi K2.5 | $0.60 | $3.00 | $0.08 | - |
|
||||
| Kimi K2 Thinking | $0.40 | $2.50 | - | - |
|
||||
| Kimi K2 | $0.40 | $2.50 | - | - |
|
||||
| Qwen3 Coder 480B | $0.45 | $1.50 | - | - |
|
||||
| Claude Sonnet 4.5 (≤ 200K tokens) | $3.00 | $15.00 | $0.30 | $3.75 |
|
||||
| Claude Sonnet 4.5 (> 200K tokens) | $6.00 | $22.50 | $0.60 | $7.50 |
|
||||
| Claude Sonnet 4 (≤ 200K tokens) | $3.00 | $15.00 | $0.30 | $3.75 |
|
||||
| Claude Sonnet 4 (> 200K tokens) | $6.00 | $22.50 | $0.60 | $7.50 |
|
||||
| Claude Haiku 4.5 | $1.00 | $5.00 | $0.10 | $1.25 |
|
||||
| Claude Haiku 3.5 | $0.80 | $4.00 | $0.08 | $1.00 |
|
||||
| Claude Opus 4.6 (≤ 200K tokens) | $5.00 | $25.00 | $0.50 | $6.25 |
|
||||
| Claude Opus 4.6 (> 200K tokens) | $10.00 | $37.50 | $1.00 | $12.50 |
|
||||
| Claude Opus 4.5 | $5.00 | $25.00 | $0.50 | $6.25 |
|
||||
| Claude Opus 4.1 | $15.00 | $75.00 | $1.50 | $18.75 |
|
||||
| Gemini 3 Pro (≤ 200K tokens) | $2.00 | $12.00 | $0.20 | - |
|
||||
| Gemini 3 Pro (> 200K tokens) | $4.00 | $18.00 | $0.40 | - |
|
||||
| Gemini 3 Flash | $0.50 | $3.00 | $0.05 | - |
|
||||
| GPT 5.2 | $1.75 | $14.00 | $0.175 | - |
|
||||
| GPT 5.2 Codex | $1.75 | $14.00 | $0.175 | - |
|
||||
| GPT 5.1 | $1.07 | $8.50 | $0.107 | - |
|
||||
| GPT 5.1 Codex | $1.07 | $8.50 | $0.107 | - |
|
||||
| GPT 5.1 Codex Max | $1.25 | $10.00 | $0.125 | - |
|
||||
| GPT 5.1 Codex Mini | $0.25 | $2.00 | $0.025 | - |
|
||||
| GPT 5 | $1.07 | $8.50 | $0.107 | - |
|
||||
| GPT 5 Codex | $1.07 | $8.50 | $0.107 | - |
|
||||
| GPT 5 Nano | Free | Free | Free | - |
|
||||
|
||||
使用履歴に _Claude Haiku 3.5_ が表示されるかもしれません。これは [セッションのタイトルを生成するために使用される低コスト モデル ](/docs/config/#models) です。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
クレジット カード手数料は実費で引き継がれます (4.4% + 取引ごとに 0.30 ドル)。それ以上の料金はかかりません。
|
||||
:::
|
||||
|
||||
無料モデル:
|
||||
The
|
||||
|
||||
- GLM 4.7 Free は期間限定で OpenCode で入手できます。チームはこの時間を利用してフィードバックを収集し、モデルを改善します。
|
||||
- Kim K2.5 Free は OpenCode で期間限定で利用可能です。チームはこの時間を利用してフィードバックを収集し、モデルを改善します。
|
||||
@@ -204,11 +201,10 @@ https://opencode.ai/zen/v1/models
|
||||
Zen はチームにも効果的です。チームメイトを招待し、役割を割り当て、キュレートすることができます
|
||||
チームが使用するモデルなど。
|
||||
|
||||
:::注記
|
||||
:::note
|
||||
ワークスペースは現在、ベータ版の一部としてチームに無料で提供されています。
|
||||
:::
|
||||
|
||||
現在、チームはベータ版の一部としてワークスペースの管理を無料で行うことができます。私たちはそうなります
|
||||
Managing
|
||||
価格の詳細については近日中にお知らせします。
|
||||
|
||||
---
|
||||
|
||||
@@ -23,7 +23,7 @@ ACP를 통해 OpenCode를 사용하려면 `opencode acp` 명령을 실행하려
|
||||
|
||||
---
|
||||
|
||||
# # # # # Zed를
|
||||
##### Zed를
|
||||
|
||||
[Zed] (https://zed.dev) 구성 (`~/.config/zed/settings.json`)에 추가 :
|
||||
|
||||
@@ -67,7 +67,7 @@ ACP를 통해 OpenCode를 사용하려면 `opencode acp` 명령을 실행하려
|
||||
|
||||
---
|
||||
|
||||
# # # # JetBrains IDEs의 특징
|
||||
#### JetBrains IDEs의 특징
|
||||
|
||||
[JetBrains IDE]에 추가하십시오 (https://www.jetbrains.com/) [documentation]에 따라 acp.json (https://www.jetbrains.com/help/ai-assistant/acp.html):
|
||||
|
||||
@@ -86,7 +86,7 @@ ACP를 통해 OpenCode를 사용하려면 `opencode acp` 명령을 실행하려
|
||||
|
||||
---
|
||||
|
||||
# # # # Avante.nvim의
|
||||
#### Avante.nvim의
|
||||
|
||||
[Avante.nvim] (https://github.com/yetone/avante.nvim) 구성에 추가하십시오:
|
||||
|
||||
@@ -119,7 +119,7 @@ ACP를 통해 OpenCode를 사용하려면 `opencode acp` 명령을 실행하려
|
||||
|
||||
---
|
||||
|
||||
# # # # CodeCompanion.nvim의
|
||||
#### CodeCompanion.nvim의
|
||||
|
||||
OpenCode를 [CodeCompanion.nvim](https://github.com/olimorris/codecompanion.nvim)에서 ACP 에이전트로 사용하려면 Neovim config에 다음을 추가하십시오.
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user