I thought that’s how it worked but putting the API key in by itself didn’t work. I think I need a way to configure the server URL too.

Reply to this note

Please Login to reply.

Discussion

Yes, is there a config file in goose?

I didn’t get that deep in it yet. Remember, I feel like I’m trying to do my own dentistry.

All good. Environment variables can probably be used for all of the goose configuration

On Linux/Mac it’s adding to your Home folder/.zshrc or .bashrc

export MY_FOO=the_value

Restart your terminal and start goose

On windows u do something else, with a GUI app

I nice had a wisdom tooth pulled without pain killer. Just because. It’s not THAT bad!!!

https://block.github.io/goose/docs/guides/environment-variables

Set all three of these 👆🏼 ENV variables in a .env file at the root of your codebase.

https://vite.dev/guide/env-and-mode.html#env-files

Make sure to ALSO add ‘.env*’ to your .gitignore file so that the secret api key does NOT end up pushed to your GitHub.

https://www.w3schools.com/git/git_ignore.asp

This might work … but prolly won’t also I think maybe goose won’t read ENV vars inside vite. You prolly need to set them in Mac OS … at least for now.

https://support.apple.com/guide/terminal/use-environment-variables-apd382cc5fa-4f58-4449-b20a-41c53c006f8f/mac

Gonna sleep on this. OpenRouter may be shitcoin-friendly but I’m just buying credits in fiat and it’s getting the job done.

You can set an environment variable for your server address, you probably also need to set one for the model u are using