Add Provider : agentrouter.org #1828

Open
opened 2026-02-16 17:32:50 -05:00 by yindo · 4 comments
Owner

Originally created by @ariefly on GitHub (Sep 25, 2025).

Originally assigned to: @fwang on GitHub.

Agent router support GLM-4.5 but i cannot use it as provider

Originally created by @ariefly on GitHub (Sep 25, 2025). Originally assigned to: @fwang on GitHub. Agent router support GLM-4.5 but i cannot use it as provider
Author
Owner

@github-actions[bot] commented on GitHub (Sep 25, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2760: Similar question about configuring GLM-4.5 model when it's not in the available models list

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Sep 25, 2025): This issue might be a duplicate of existing issues. Please check: - #2760: Similar question about configuring GLM-4.5 model when it's not in the available models list Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Sep 25, 2025):

We will need to add to models.dev, you should still be able to use it if you define custom provider tho: https://opencode.ai/docs/providers/#custom-provider

@rekram1-node commented on GitHub (Sep 25, 2025): We will need to add to models.dev, you should still be able to use it if you define custom provider tho: https://opencode.ai/docs/providers/#custom-provider
Author
Owner

@santoshd commented on GitHub (Oct 14, 2025):

I tried working with Aiden on discord to add the service through a custom provider. I suspect there's some filtering on the part of Agentrouter that prevents non-approved tool use. They have listed codex, claude as supported. I have attempted another CLI tool as well which also fails. I've written to the Agentrouter team and they have not responded.

@santoshd commented on GitHub (Oct 14, 2025): I tried working with Aiden on discord to add the service through a custom provider. I suspect there's some filtering on the part of Agentrouter that prevents non-approved tool use. They have listed codex, claude as supported. I have attempted another CLI tool as well which also fails. I've written to the Agentrouter team and they have not responded.
Author
Owner

@alpgul commented on GitHub (Nov 28, 2025):

Temporary solution:

"agentrouter": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "agentrouter",
      "options": {
        "baseURL": "https://agentrouter.org/v1",
        "headers": {
          "Authorization": "Bearer apiKey",
          "User-Agent": "RooCode/3.34.8",
          "X-Title": "Roo Code",
          "HTTP-Referer": "https://github.com/RooVetGit/Roo-Cline",
          "X-Stainless-Runtime-Version": "v22.20.0",
          "X-Stainless-Runtime": "node",
          "X-Stainless-Arch": "x64",
          "X-Stainless-OS": "Linux",
          "X-Stainless-Lang": "js"
        }
      },
      "models": {
        "glm-4.6": {
          "name": "glm-4.6",
          "limit": {
            "context": 200000,
            "output": 65536
          }
        }
      }
    }
@alpgul commented on GitHub (Nov 28, 2025): Temporary solution: ```json "agentrouter": { "npm": "@ai-sdk/openai-compatible", "name": "agentrouter", "options": { "baseURL": "https://agentrouter.org/v1", "headers": { "Authorization": "Bearer apiKey", "User-Agent": "RooCode/3.34.8", "X-Title": "Roo Code", "HTTP-Referer": "https://github.com/RooVetGit/Roo-Cline", "X-Stainless-Runtime-Version": "v22.20.0", "X-Stainless-Runtime": "node", "X-Stainless-Arch": "x64", "X-Stainless-OS": "Linux", "X-Stainless-Lang": "js" } }, "models": { "glm-4.6": { "name": "glm-4.6", "limit": { "context": 200000, "output": 65536 } } } } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1828