-
Notifications
You must be signed in to change notification settings - Fork 12.2k
Closed
Description
configuration file
using Nix as my configuration tool of choice, my setup (opencode.nix results in this config.json:
observed behavior
when i run opencode, i get:
Error: Config file at /home/muni/.config/opencode/config.json is not valid JSON
if i remove the headers object, opencode can start as expected again, without error.
expected behavior
i expect opencode to substitute the contents of my file into the Authorization header, as documented here: https://opencode.ai/docs/config/#files
i assume it works with remote mcp configurations too, at least 😅 https://opencode.ai/docs/mcp-servers/#remote
opencode version
i just upgraded to opencode 0.3.85, but this issue has been present since 0.3.80 as well.
other notes
the github_pat file has a permissions mode of 400. it is not a symlink.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
{ "$schema": "https://opencode.ai/config.json", "autoupdate": false, "mcp": { // ... "github": { "enabled": true, "headers": { "Authorization": "Bearer {file:/home/muni/.config/sops-nix/secrets/github_pat}" }, "type": "remote", "url": "https://api.githubcopilot.com/mcp/" }, // ... } }