Skip to main content

General

The Obot server is configured via environment variables. The following configuration is available:

Environment VariableDescription
OPENAI_API_KEYThe foundation of Obot is a large language model that supports function-calling. The default is OpenAI and specifying an OpenAI key here will ensure none of the users need to worry about specifying their own API key.
GITHUB_AUTH_TOKENObot and its underlying tool GPTScript make heavy use of tools hosted on GitHub. Care is taken to cache these tools and only re-check when necessary. However, rate-limiting can happen. Setting a read-only token here can alleviate many of these issues.
OBOT_SERVER_DSNObot uses a database backend. By default, it will use a sqlite3 local database. This environment variable allows you to specify another database option. For example, you can use a postgres database with something like OBOT_SERVER_DSN=postgres://user:password@host/database.
OBOT_SERVER_HOSTNAMETell Obot what its server URL is so that things like OAuth, LLM proxying, and invoke URLs are handled correctly.
note

You can configure other model-providers besides OpenAI.