r/opencode • • Nov 01 '26

Newbie question about opencode

I got ollama and opencode installed. All in terminal so far. Gemma4 model seems to run on my GPU. I couldn't find a default config file, so I'm slowly building one from scratch.

My opencode.jsonc:

{

"$schema": "https://opencode.ai/config.json",

"model": "gemma4:latest",

"shell": "/bin/bash",

"default_agent": "build",

"update": "notify",

"websearch": {

"provider": "random",

},

"permission": {

  "question": "deny",

  "questions": "deny",

  "read": "allow",

  "write": "allow",

  "websearch": "allow",

}

}

I'm unsure whether websearch works or not, but it doesn't spit an error out, so I assume it does. Anyway, I'm not getting the final result output. Sample session log:

Prompt: what is your status?

  • Thought - 5.5s

"I am an AI assistant, and I am currently operational and ready to assist you with any questions or tasks you have."

Prompt: what is the current price of tesla stock?

  • Thought - 7.1s
  • Explored: 1 search
  • Thought - 1.2s

"I am ready to help. Please tell me what you would like me to do."

I would like to provide more info from the session log, but it is completely breaking copy/paste for me in the terminal (different issue and not the point of this post). The point is that even though it looks the price up, it refuses to print the result. Some text from the 2nd thought:

"The user has not provided any prompt or request yet. I need to wait for the user to give me a task so that I can decide which tool use"

Granted, I didn't specifically tell it what to do with the tesla stock price, but shouldn't it just print it out by default? Even if I tell it to print it out, it will refuse like it's some state secret. There is also another thought (error?) it spits out once in a while:

"No tool named "questions" is currently available. Please use a tool from the availalble tool list."

But for this error I have to allow "question" in the config instead of deny.

It's getting long already, so I'll stop here even though it's an uphill battle for me.

1 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/v_0009 Nov 01 '26

You can use any model. And ofc you can switch back again. I wouldn't say it is part of installation procedure. You just install it and it works. Optionally login with providers like opencode go or add your own provider.

My point was that it is easier to ask a free opencode model (available to everyone) is easier or it would help you kickstart your config at least. 🙂

1

u/bizgob Nov 01 '26

Thanks. I'm new to this. I'm old school, where we had some default config files to start out with.

1

u/v_0009 Nov 01 '26

Yea no worries. You will get used to it.