openclaw - ✅(Solved) Fix [Feature]: Add FriendliAI as a built-in provider [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#69992Fetched 2026-04-23 07:30:37
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
1
Author
Participants
Timeline (top)
cross-referenced ×1labeled ×1subscribed ×1

Add Friendliai as a bundled provider plugin so users can select it during onboarding. FriendliAI offers serverless inference for popular open-weight models (DeepSeek, Qwen3, GLM, Llama) through an OpenAI-compatible API with prompt caching support and low latency.

Root Cause

Add Friendliai as a bundled provider plugin so users can select it during onboarding. FriendliAI offers serverless inference for popular open-weight models (DeepSeek, Qwen3, GLM, Llama) through an OpenAI-compatible API with prompt caching support and low latency.

Fix Action

Fixed

PR fix notes

PR #69174: feat: add FriendliAI model provider

Description (problem / solution / changelog)

Summary

  • Problem: No bundled FriendliAI provider — users had to configure it manually.
  • What changed: Added extensions/friendliai/ as a new bundled provider plugin: manifest, 8-model catalog (Llama, DeepSeek, Qwen3, GLM, K-EXAONE), API-key auth onboarding, dynamic friendliai/<model-id> resolution, unit tests, and provider docs.
  • What did NOT change: No core code touched; registers entirely through the plugin SDK/manifest contract.

Change Type (select all)

  • Feature
  • Docs

Scope (select all touched areas)

  • Integrations

Linked Issue/PR

  • #69992

User-visible / Behavior Changes

  • openclaw onboard --auth-choice friendliai-api-key now works.
  • openclaw models list --provider friendliai returns the built-in catalog.
  • Any friendliai/<model-id> ref resolves dynamically without a catalog update.

Security Impact (required)

  • New permissions/capabilities? (No)
  • Secrets/tokens handling changed? (Yes) — FRIENDLIAI_API_KEY via standard envVar auth path, same as all other API-key providers.
  • New/changed network calls? (Yes) — https://api.friendli.ai/serverless/v1
  • Command/tool execution surface changed? (No)
  • Data access scope changed? (No)

Repro + Verification

  1. openclaw onboard --auth-choice friendliai-api-key --friendliai-api-key "$FRIENDLIAI_API_KEY"
  2. openclaw models list --provider friendliai
  3. Send a message using a friendliai/ model ref

Actual

<img width="920" height="1161" alt="스크린샷 2026-04-20 12 09 40" src="https://github.com/user-attachments/assets/cc6ab737-fab2-4cdb-b19a-2a7042f7589e" /> <img width="1025" height="393" alt="스크린샷 2026-04-20 12 11 11" src="https://github.com/user-attachments/assets/a099b51c-2095-43d4-bab1-33b24225c4a0" /> <img width="926" height="71" alt="스크린샷 2026-04-20 12 21 11" src="https://github.com/user-attachments/assets/87e51b4f-d331-43e2-acf0-02bf20f4c3f6" />

Human Verification (required)

What you personally verified (not just CI), and how:

  • Verified scenarios:
  • Edge cases checked:
  • What you did not verify:

Review Conversations

  • I replied to or resolved every bot review conversation I addressed in this PR.
  • I left unresolved only the conversations that still need reviewer or maintainer judgment.

If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review conversation cleanup for maintainers.

Compatibility / Migration

  • Backward compatible? (Yes)
  • Config/env changes? (No) - new optional FRIENDLIAI_API_KEY; nothing breaks if absent
  • Migration needed? (No)
  • If yes, exact upgrade steps:

Risks and Mitigations

List only real risks for this PR. Add/remove entries as needed. If none, write None.

  • Risk:
  • Mitigation:

Changed files

  • .github/labeler.yml (modified, +5/-0)
  • docs/docs.json (modified, +1/-0)
  • docs/providers/friendliai.md (added, +118/-0)
  • docs/providers/index.md (modified, +1/-0)
  • extensions/friendliai/index.test.ts (added, +149/-0)
  • extensions/friendliai/index.ts (added, +78/-0)
  • extensions/friendliai/onboard.ts (added, +34/-0)
  • extensions/friendliai/openclaw.plugin.json (added, +28/-0)
  • extensions/friendliai/package.json (added, +15/-0)
  • extensions/friendliai/provider-catalog.ts (added, +94/-0)
  • extensions/friendliai/tsconfig.json (added, +16/-0)
  • pnpm-lock.yaml (modified, +6/-0)
RAW_BUFFERClick to expand / collapse

Summary

Add Friendliai as a bundled provider plugin so users can select it during onboarding. FriendliAI offers serverless inference for popular open-weight models (DeepSeek, Qwen3, GLM, Llama) through an OpenAI-compatible API with prompt caching support and low latency.

Problem to solve

Currently FriendliAI is not in the default providers list. Since FriendliAI's serverless endpoint is OpenAI-compatible (/chat/completions), users can set it up manually in openclaw.json with a custom openai-completions provider entry.

However, it requires additional setup cost and manual modification of configuration files

<img width="401" height="702" alt="Image" src="https://github.com/user-attachments/assets/3dd4b87d-b3ce-4835-8216-d51d7b5ec525" />

Proposed solution

Add extensions/friendliai/ as a new bundled provider plugin, following the existing plugin SDK/manifest contract pattern. No core code changes required.

While going over the repo, found that there already exists a PR that tries to add FriendliAI #69174

Alternatives considered

Manual openclaw.json config: Works, but requires users to know the base URL, model IDs, and config schema. No discoverability via openclaw models list or onboarding wizard.

Impact

  • Users in regions where FriendliAI's infrastructure provides lower latency
  • Users who want prompt caching support on open-weight models

Severity: Annoying Frequency: every time for users who choose FriendliAI as their provider and update models

Evidence/examples

No response

Additional information

extent analysis

TL;DR

Add FriendliAI as a bundled provider plugin by including the extensions/friendliai/ directory in the plugin manifest, following the existing plugin SDK contract pattern.

Guidance

  • Review the existing PR #69174 that attempts to add FriendliAI support to understand the implementation details and potential challenges.
  • Verify that the FriendliAI serverless endpoint (/chat/completions) is compatible with the OpenAI-compatible API used in the project.
  • Check the FriendliAI documentation (https://docs.friendli.ai) for any specific requirements or recommendations for integrating their service.
  • Consider the discoverability and usability implications of adding FriendliAI as a bundled provider, ensuring that users can easily select and configure it during onboarding.

Example

No code example is provided as the issue does not contain sufficient technical details about the implementation.

Notes

The proposed solution assumes that the existing plugin SDK contract pattern can be applied to FriendliAI without significant modifications. However, the actual implementation may require additional work or adjustments to accommodate specific requirements of the FriendliAI service.

Recommendation

Apply the workaround by adding extensions/friendliai/ as a new bundled provider plugin, as it seems to be a straightforward solution that can improve the user experience for those who prefer FriendliAI.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - ✅(Solved) Fix [Feature]: Add FriendliAI as a built-in provider [1 pull requests, 1 participants]