diff --git a/openhands/usage/llms/openai-llms.mdx b/openhands/usage/llms/openai-llms.mdx index d97a573f..9e64c99a 100644 --- a/openhands/usage/llms/openai-llms.mdx +++ b/openhands/usage/llms/openai-llms.mdx @@ -16,6 +16,29 @@ If the model is not in the list, enable `Advanced` options, and enter it in `Cus Just as for OpenAI Chat completions, we use LiteLLM for OpenAI-compatible endpoints. You can find their full documentation on this topic [here](https://docs.litellm.ai/docs/providers/openai_compatible). +### Using PZERO + +[PZERO](https://pzero.studio/agents) provides an OpenAI-compatible endpoint. Create a PZERO API key, then go to `Settings` > `LLM` in the OpenHands UI, enable `Advanced` options, and set: + +- `Custom Model` to `openai/deepseek-v4-flash` +- `Base URL` to `https://api.pzero.studio/v1` +- `API Key` to your PZERO API key beginning with `pzero_` + +You can also configure PZERO in `config.toml`: + +```toml +[llm] +model = "openai/deepseek-v4-flash" +api_key = "pzero_YOUR_KEY" +base_url = "https://api.pzero.studio/v1" +``` + +Replace `pzero_YOUR_KEY` with your PZERO API key. To use a different model, query the public `GET https://api.pzero.studio/v1/models` endpoint and prefix the returned model ID with `openai/`. + + + Use `https://api.pzero.studio/v1` as the `Base URL`. Do not use the full `https://api.pzero.studio/v1/chat/completions` endpoint as the base URL. + + ## Using an OpenAI Proxy If you're using an OpenAI proxy, in the OpenHands UI through the Settings under the `LLM` tab: