From 79d43c879141b5dc9883ba56413e37f6f54aacdd Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Mon, 20 Jul 2026 15:27:20 -0600 Subject: [PATCH] docs: config.example.yaml example for Device Authorization Grant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a commented example under the openai-compatible client section showing how to configure flow: device_code for RFC 8628 device flow. Uses Moonshot's kimi-code endpoints as the illustrative reference (users supply their own client_id — no bundled defaults per §5.8 of the design plan). --- config.example.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config.example.yaml b/config.example.yaml index 09a2c92..601e115 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -369,6 +369,18 @@ clients: # scopes: [openai.chat] # flow: client_credentials + # Example: OAuth via Device Authorization Grant (RFC 8628 — for CLIs like Moonshot's kimi-code, MiniMax mmx, etc.) + # - type: openai-compatible + # name: moonshot + # api_base: https://api.kimi.com/coding/v1 + # auth: oauth + # oauth: + # client_id: '{{MOONSHOT_CLIENT_ID}}' + # device_authorization_url: https://auth.kimi.com/api/oauth/device_authorization + # token_url: https://auth.kimi.com/api/oauth/token + # flow: device_code + # # use_pkce_in_device_flow: true # enable if your provider requires PKCE with device flow + # See https://docs.ai21.com/docs/overview - type: openai-compatible name: ai12