Could not set base URL for Cerebras provider #2698

Closed
opened 2026-02-16 17:36:52 -05:00 by yindo · 8 comments
Owner

Originally created by @franchb on GitHub (Nov 8, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Config is

❯ cat ~/.local/share/opencode/config.json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "cerebras": {
      "options": {
          "baseURL": "https://deno-proxy.franchb.deno.net/api.cerebras.ai/v1"
      }
    }
  }
}

But base URL is still default:

ERROR 2025-11-08T17:55:55 +226ms service=session.prompt session=ses_59b63bae7ffeSi1looXdSuqdoW error={"error":{"name":"AI_APICallError","url":"https://api.cerebras.ai/v1/chat/completions",

OpenCode version

1.0.45

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Fedora 42

Terminal

fish

Originally created by @franchb on GitHub (Nov 8, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Config is ``` ❯ cat ~/.local/share/opencode/config.json { "$schema": "https://opencode.ai/config.json", "provider": { "cerebras": { "options": { "baseURL": "https://deno-proxy.franchb.deno.net/api.cerebras.ai/v1" } } } } ``` But base URL is still default: ```shell ERROR 2025-11-08T17:55:55 +226ms service=session.prompt session=ses_59b63bae7ffeSi1looXdSuqdoW error={"error":{"name":"AI_APICallError","url":"https://api.cerebras.ai/v1/chat/completions", ``` ### OpenCode version 1.0.45 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System Fedora 42 ### Terminal fish
yindo added the bug label 2026-02-16 17:36:52 -05:00
yindo closed this issue 2026-02-16 17:36:52 -05:00
Author
Owner

@OpeOginni commented on GitHub (Nov 8, 2025):

Tried it and it seems to work for me

@OpeOginni commented on GitHub (Nov 8, 2025): Tried it and it seems to work for me
Author
Owner

@rekram1-node commented on GitHub (Nov 8, 2025):

@OpeOginni u did it with the cerebras provider too? not just like a random one right?

@rekram1-node commented on GitHub (Nov 8, 2025): @OpeOginni u did it with the cerebras provider too? not just like a random one right?
Author
Owner

@OpeOginni commented on GitHub (Nov 8, 2025):

Yes, Used the Demo Proxy as well (from issue), seemed to work too

@OpeOginni commented on GitHub (Nov 8, 2025): Yes, Used the Demo Proxy as well (from issue), seemed to work too
Author
Owner

@rekram1-node commented on GitHub (Nov 8, 2025):

Gotcha, @franchb did you restart opencode after making this change?

Can u show me output of opencode debug config?

@rekram1-node commented on GitHub (Nov 8, 2025): Gotcha, @franchb did you restart opencode after making this change? Can u show me output of `opencode debug config`?
Author
Owner

@rekram1-node commented on GitHub (Nov 8, 2025):

thanks @OpeOginni for testing!

@rekram1-node commented on GitHub (Nov 8, 2025): thanks @OpeOginni for testing!
Author
Owner

@franchb commented on GitHub (Nov 8, 2025):

Hi!

I've updated to latest opencode v1.0.49, fully restarted my laptop. The same error again.

opencode debug config
{
  "agent": {},
  "mode": {},
  "plugin": [],
  "command": {},
  "username": "<redacted>",
  "keybinds": {
    "leader": "ctrl+x",
    "app_exit": "ctrl+c,ctrl+d,<leader>q",
    "editor_open": "<leader>e",
    "theme_list": "<leader>t",
    "sidebar_toggle": "<leader>b",
    "status_view": "<leader>s",
    "session_export": "<leader>x",
    "session_new": "<leader>n",
    "session_list": "<leader>l",
    "session_timeline": "<leader>g",
    "session_share": "none",
    "session_unshare": "none",
    "session_interrupt": "escape",
    "session_compact": "<leader>c",
    "messages_page_up": "pageup",
    "messages_page_down": "pagedown",
    "messages_half_page_up": "ctrl+alt+u",
    "messages_half_page_down": "ctrl+alt+d",
    "messages_first": "ctrl+g,home",
    "messages_last": "ctrl+alt+g,end",
    "messages_copy": "<leader>y",
    "messages_undo": "<leader>u",
    "messages_redo": "<leader>r",
    "messages_toggle_conceal": "<leader>h",
    "model_list": "<leader>m",
    "model_cycle_recent": "f2",
    "model_cycle_recent_reverse": "shift+f2",
    "command_list": "ctrl+p",
    "agent_list": "<leader>a",
    "agent_cycle": "tab",
    "agent_cycle_reverse": "shift+tab",
    "input_clear": "ctrl+c",
    "input_forward_delete": "ctrl+d",
    "input_paste": "ctrl+v",
    "input_submit": "return",
    "input_newline": "shift+return,ctrl+j",
    "history_previous": "up",
    "history_next": "down",
    "session_child_cycle": "ctrl+right",
    "session_child_cycle_reverse": "ctrl+left"
  }
}

@franchb commented on GitHub (Nov 8, 2025): Hi! I've updated to latest `opencode` v1.0.49, fully restarted my laptop. The same error again. ```shell opencode debug config { "agent": {}, "mode": {}, "plugin": [], "command": {}, "username": "<redacted>", "keybinds": { "leader": "ctrl+x", "app_exit": "ctrl+c,ctrl+d,<leader>q", "editor_open": "<leader>e", "theme_list": "<leader>t", "sidebar_toggle": "<leader>b", "status_view": "<leader>s", "session_export": "<leader>x", "session_new": "<leader>n", "session_list": "<leader>l", "session_timeline": "<leader>g", "session_share": "none", "session_unshare": "none", "session_interrupt": "escape", "session_compact": "<leader>c", "messages_page_up": "pageup", "messages_page_down": "pagedown", "messages_half_page_up": "ctrl+alt+u", "messages_half_page_down": "ctrl+alt+d", "messages_first": "ctrl+g,home", "messages_last": "ctrl+alt+g,end", "messages_copy": "<leader>y", "messages_undo": "<leader>u", "messages_redo": "<leader>r", "messages_toggle_conceal": "<leader>h", "model_list": "<leader>m", "model_cycle_recent": "f2", "model_cycle_recent_reverse": "shift+f2", "command_list": "ctrl+p", "agent_list": "<leader>a", "agent_cycle": "tab", "agent_cycle_reverse": "shift+tab", "input_clear": "ctrl+c", "input_forward_delete": "ctrl+d", "input_paste": "ctrl+v", "input_submit": "return", "input_newline": "shift+return,ctrl+j", "history_previous": "up", "history_next": "down", "session_child_cycle": "ctrl+right", "session_child_cycle_reverse": "ctrl+left" } } ```
Author
Owner

@rekram1-node commented on GitHub (Nov 8, 2025):

@franchb where did you set that base url?

Given it isn't in your config it seems like you placed it in the wrong spot?

Oh i see u stated here:
cat ~/.local/share/opencode/config.json

^^ This config isn't ever read, you can read more about config locations here

So the global config needs to be in ~/.config/opencode/opencode.json (you can also use .jsonc if u prefer doesnt matter either way)

@rekram1-node commented on GitHub (Nov 8, 2025): @franchb where did you set that base url? Given it isn't in your config it seems like you placed it in the wrong spot? Oh i see u stated here: cat ~/.local/share/opencode/config.json ^^ This config isn't ever read, you can read more about config locations [here](https://opencode.ai/docs/config/#global) So the global config needs to be in `~/.config/opencode/opencode.json` (you can also use .jsonc if u prefer doesnt matter either way)
Author
Owner

@franchb commented on GitHub (Nov 8, 2025):

Works! Thank you!

@franchb commented on GitHub (Nov 8, 2025): Works! Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2698