Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

won't launch with default configs #71

Closed

Description

@nixoid

I've installed it from homebrew and it does not start with example configs / default configuration.

~ % opencode -d
Error: model not supported

~ % opencode -d
Error: agent coder not found

{ "data": { "directory": ".opencode" }, "providers": { "anthropic": { "apiKey": "my-key", "disabled": false }, "gemini": { "apiKey": "my-key", "disabled": false } }, "agents": { "coder": { "model": "claude-3.7-sonnet", "maxTokens": 5000 }, "task": { "model": "claude-3.7-sonnet", "maxTokens": 5000 } }, "lsp": { "go": { "disabled": false, "command": "gopls" } }, "debug": false, "debugLSP": false }

Activity

  1. kujtimiihoxha commented on Apr 25, 2025

    @kujtimiihoxha
    Contributor

    Hi, so by default you should not need any config, the issue you have might be related to #62 (comment)

    Basically we need to handle messaging better but if there are no env variables that configure a provider it will respond with that message

  2. nixoid commented on Apr 26, 2025

    @nixoid
    Author

    setting ENV variables helped. It wasn't obvious because README says "you can" set ENV variables, like it's an optional or alternative configuration method. I was expecting it to read the config

  3. kujtimiihoxha commented on Apr 26, 2025

    @kujtimiihoxha
    Contributor

    Yeah I need to rewrite the readme, its not the best.

  4. kujtimiihoxha commented on Apr 26, 2025

    @kujtimiihoxha
    Contributor

    Also if you setup the apiKey in the local config it should actually work without the env variable so if that does not work it is a bug.

  5. rekram1-node commented on Apr 28, 2025

    @rekram1-node
    Contributor

    I think there is a bug, if I try to start opencode when the var is in the config but not set as environment variable I get this:

    opencode --debug
    Error: model  not supported
    Usage:
      OpenCode [flags]
    
    Flags:
      -c, --cwd string   Current working directory
      -d, --debug        Debug
      -h, --help         Help
      -v, --version      Version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions