Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/kilo-docs/pages/code-with-ai/platforms/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ You can set permissions globally (with `*`), and override specific tools.

```json
{
"$schema": "https://kilo.ai/config.json",
"$schema": "https://opencode.ai/config.json",
"permission": {
"*": "ask",
"bash": "allow",
Expand All @@ -209,7 +209,7 @@ You can also set all permissions at once:

```json
{
"$schema": "https://kilo.ai/config.json",
"$schema": "https://opencode.ai/config.json",
"permission": "allow"
}
```
Expand Down Expand Up @@ -261,7 +261,7 @@ Use `external_directory` to allow tool calls that touch paths outside the workin

```json
{
"$schema": "https://kilo.ai/config.json",
"$schema": "https://opencode.ai/config.json",
"permission": {
"external_directory": {
"~/projects/personal/**": "allow"
Expand All @@ -274,7 +274,7 @@ Any directory allowed here inherits the same defaults as the current workspace.

```json
{
"$schema": "https://kilo.ai/config.json",
"$schema": "https://opencode.ai/config.json",
"permission": {
"external_directory": {
"~/projects/personal/**": "allow"
Expand Down
8 changes: 4 additions & 4 deletions packages/opencode/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export namespace Config {
const wellknown = (await response.json()) as any
const remoteConfig = wellknown.config ?? {}
// Add $schema to prevent load() from trying to write back to a non-existent file
if (!remoteConfig.$schema) remoteConfig.$schema = "https://kilo.ai/config.json" // kilocode_change
if (!remoteConfig.$schema) remoteConfig.$schema = "https://opencode.ai/config.json" // kilocode_change
result = mergeConfigConcatArrays(
result,
await load(JSON.stringify(remoteConfig), `${key}/.well-known/opencode`),
Expand Down Expand Up @@ -1307,7 +1307,7 @@ export namespace Config {
.then(async (mod) => {
const { provider, model, ...rest } = mod.default
if (provider && model) result.model = `${provider}/${model}`
result["$schema"] = "https://kilo.ai/config.json" // kilocode_change
result["$schema"] = "https://opencode.ai/config.json" // kilocode_change
result = mergeDeep(result, rest)
await Bun.write(path.join(Global.Path.config, "config.json"), JSON.stringify(result, null, 2))
await fs.unlink(legacy)
Expand Down Expand Up @@ -1400,9 +1400,9 @@ export namespace Config {
const parsed = Info.safeParse(data)
if (parsed.success) {
if (!parsed.data.$schema) {
parsed.data.$schema = "https://kilo.ai/config.json" // kilocode_change
parsed.data.$schema = "https://opencode.ai/config.json" // kilocode_change
// Write the $schema to the original text to preserve variables like {env:VAR}
const updated = original.replace(/^\s*\{/, '{\n "$schema": "https://kilo.ai/config.json",') // kilocode_change
const updated = original.replace(/^\s*\{/, '{\n "$schema": "https://opencode.ai/config.json",') // kilocode_change
await Bun.write(configFilepath, updated).catch(() => {})
}
const data = parsed.data
Expand Down
Loading