🙌 OpenHands: AI-Driven Development
Add qwen-3-coder-480b to OpenHands provider (#9985)
Xingyao Wang6cea73b6dabf
diff --git a/docs/usage/llms/openhands-llms.mdx b/docs/usage/llms/openhands-llms.mdxindex 92840f24c3..031b829502 100644--- a/docs/usage/llms/openhands-llms.mdx+++ b/docs/usage/llms/openhands-llms.mdx@@ -30,5 +30,6 @@ When running OpenHands, you'll need to set the following in the OpenHands UI thr## Pricing-Pricing follows official API provider rates.-[You can view model prices here.](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json)+Pricing follows official API provider rates. [You can view model prices here.](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json)++For `qwen3-coder-480b`, we charge the cheapest FP8 rate available on openrouter: $0.4 per million input tokens and $1.6 per million output tokens.diff --git a/frontend/src/i18n/translation.json b/frontend/src/i18n/translation.jsonindex 4967258471..cb6e6e3c5f 100644--- a/frontend/src/i18n/translation.json+++ b/frontend/src/i18n/translation.json@@ -6192,20 +6192,20 @@"uk": "Ви можете знайти свій ключ API OpenHands у"},"SETTINGS$OPENHANDS_API_KEY_HELP_SUFFIX": {- "en": "tab of OpenHands Cloud.",- "ja": "タブで確認できます。",- "zh-CN": "标签页中找到您的OpenHands API密钥。",- "zh-TW": "標籤頁中找到您的OpenHands API密鑰。",- "ko-KR": "탭에서 찾을 수 있습니다.",- "no": "-fanen i OpenHands Cloud.",- "it": "scheda di OpenHands Cloud.",- "pt": "guia do OpenHands Cloud.",- "es": "pestaña de OpenHands Cloud.",- "ar": "علامة التبويب في OpenHands Cloud.",- "fr": "l'onglet d'OpenHands Cloud.",- "tr": "OpenHands Cloud'un sekmesinde bulabilirsiniz.",- "de": "Tab von OpenHands Cloud.",- "uk": "вкладці OpenHands Cloud."+ "en": "tab of OpenHands Cloud. LLM usage is billed at the providers' rates with no markup. Details: https://docs.all-hands.dev/usage/llms/openhands-llms",+ "ja": "タブで確認できます。LLMの使用料金は、プロバイダーの料金でマークアップなしで請求されます。詳細: https://docs.all-hands.dev/usage/llms/openhands-llms",+ "zh-CN": "标签页中找到您的OpenHands API密钥。LLM使用费用按提供商费率计费,无加价。详情: https://docs.all-hands.dev/usage/llms/openhands-llms",+ "zh-TW": "標籤頁中找到您的OpenHands API密鑰。LLM使用費用按提供商費率計費,無加價。詳情: https://docs.all-hands.dev/usage/llms/openhands-llms",+ "ko-KR": "탭에서 찾을 수 있습니다. LLM 사용료는 제공업체 요금으로 마크업 없이 청구됩니다. 자세한 내용: https://docs.all-hands.dev/usage/llms/openhands-llms",+ "no": "-fanen i OpenHands Cloud. LLM-bruk faktureres til leverandørenes priser uten påslag. Detaljer: https://docs.all-hands.dev/usage/llms/openhands-llms",+ "it": "scheda di OpenHands Cloud. L'utilizzo di LLM viene fatturato alle tariffe dei fornitori senza ricarico. Dettagli: https://docs.all-hands.dev/usage/llms/openhands-llms",+ "pt": "guia do OpenHands Cloud. O uso de LLM é cobrado nas tarifas dos provedores sem markup. Detalhes: https://docs.all-hands.dev/usage/llms/openhands-llms",+ "es": "pestaña de OpenHands Cloud. El uso de LLM se factura a las tarifas de los proveedores sin recargo. Detalles: https://docs.all-hands.dev/usage/llms/openhands-llms",+ "ar": "علامة التبويب في OpenHands Cloud. يتم فوترة استخدام LLM بأسعار المزودين بدون زيادة. التفاصيل: https://docs.all-hands.dev/usage/llms/openhands-llms",+ "fr": "l'onglet d'OpenHands Cloud. L'utilisation de LLM est facturée aux tarifs des fournisseurs sans majoration. Détails : https://docs.all-hands.dev/usage/llms/openhands-llms",+ "tr": "OpenHands Cloud'un sekmesinde bulabilirsiniz. LLM kullanımı, sağlayıcıların oranlarında ek ücret olmadan faturalandırılır. Ayrıntılar: https://docs.all-hands.dev/usage/llms/openhands-llms",+ "de": "Tab von OpenHands Cloud. LLM-Nutzung wird zu Anbieterpreisen ohne Aufschlag abgerechnet. Details: https://docs.all-hands.dev/usage/llms/openhands-llms",+ "uk": "вкладці OpenHands Cloud. Використання LLM оплачується за тарифами провайдерів без надбавки. Деталі: https://docs.all-hands.dev/usage/llms/openhands-llms"},"SETTINGS$CREATE_API_KEY": {"en": "Create API Key",diff --git a/frontend/src/utils/verified-models.ts b/frontend/src/utils/verified-models.tsindex cca4deb1d4..2522427518 100644--- a/frontend/src/utils/verified-models.ts+++ b/frontend/src/utils/verified-models.ts@@ -21,6 +21,7 @@ export const VERIFIED_MODELS = ["devstral-small-2507","devstral-medium-2507","kimi-k2-0711-preview",+ "qwen3-coder-480b",];// LiteLLM does not return OpenAI models with the provider, so we list them here to set them ourselves for consistency@@ -68,6 +69,7 @@ export const VERIFIED_OPENHANDS_MODELS = ["devstral-medium-2507","devstral-small-2505","kimi-k2-0711-preview",+ "qwen3-coder-480b",];// Default model for OpenHands providerdiff --git a/openhands/cli/settings.py b/openhands/cli/settings.pyindex 0218897c1a..191d56e5b3 100644--- a/openhands/cli/settings.py+++ b/openhands/cli/settings.py@@ -268,14 +268,15 @@ async def modify_llm_settings_basic(# For OpenHands provider, directly show all verified models without the "use default" optionif provider == 'openhands':- print_formatted_text(HTML('\n<grey>Available OpenHands models:</grey>'))-# Create a list of models for the cli_confirm functionmodel_choices = VERIFIED_OPENHANDS_MODELSmodel_choice = cli_confirm(config,- '(Step 2/3) Select LLM Model:',+ (+ '(Step 2/3) Select Available OpenHands Model:\n'+ + 'LLM usage is billed at the providers’ rates with no markup. Details: https://docs.all-hands.dev/usage/llms/openhands-llms'+ ),model_choices,)diff --git a/openhands/cli/utils.py b/openhands/cli/utils.pyindex 81755cda38..407baf482a 100644--- a/openhands/cli/utils.py+++ b/openhands/cli/utils.py@@ -190,6 +190,7 @@ VERIFIED_OPENHANDS_MODELS = ['o4-mini','gemini-2.5-pro','kimi-k2-0711-preview',+ 'qwen3-coder-480b',]diff --git a/openhands/llm/llm.py b/openhands/llm/llm.pyindex 617ad64950..601261d2cd 100644--- a/openhands/llm/llm.py+++ b/openhands/llm/llm.py@@ -89,6 +89,7 @@ FUNCTION_CALLING_SUPPORTED_MODELS = ['kimi-k2-0711-preview','kimi-k2-instruct','Qwen3-Coder-480B-A35B-Instruct',+ 'qwen3-coder', # this will match both qwen3-coder-480b (openhands provider) and qwen3-coder (for openrouter)]REASONING_EFFORT_SUPPORTED_MODELS = [diff --git a/openhands/utils/llm.py b/openhands/utils/llm.pyindex 2abbdbb028..860cc9f663 100644--- a/openhands/utils/llm.py+++ b/openhands/utils/llm.py@@ -64,6 +64,7 @@ def get_supported_llm_models(config: OpenHandsConfig) -> list[str]:'openhands/devstral-small-2507','openhands/devstral-medium-2507','openhands/kimi-k2-0711-preview',+ 'openhands/qwen3-coder-480b',]model_list = openhands_models + model_list