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.
Looks like you can just use an api key just like OpenAI api with nostr:nprofile1qqsgha3fk023ng8c4quszdayghqwkt6l9d9ga4c3280gnqz3aqqx7ycpramhxue69uhkummnw3ezuetfde6kuer6wasku7nfvuh8xurpvdjszrthwden5te0dehhxtnvdakqx0dc8u , just use lightning to pay. I only support cashu in Contex.st I should add API key support
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.
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.
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

