惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog
The Cloudflare Blog
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
L
LangChain Blog
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
V
V2EX
I
InfoQ
博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
H
Help Net Security
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
B
Blog RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
feat(openrouter): expand app attribution categories · ope...
vincentkoc · 2026-05-04 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -26,6 +26,7 @@ Docs: https://docs.openclaw.ai

2626

- Plugins/CLI: include package dependency install state in `openclaw plugins list --json` so scripts can spot missing plugin dependencies without runtime-loading plugins.

2727

- Discord/status: add degraded Discord transport and gateway event-loop starvation signals to `openclaw channels status`, `openclaw status --deep`, and fetch-timeout logs so intermittent socket resets do not look like a healthy running channel. (#76327) Thanks @joshavant.

2828

- Providers/OpenRouter: add opt-in response caching params that send OpenRouter's `X-OpenRouter-Cache`, `X-OpenRouter-Cache-TTL`, and cache-clear headers only on verified OpenRouter routes. Thanks @vincentkoc.

29+

- Providers/OpenRouter: expand app-attribution categories so OpenClaw advertises coding, programming, writing, chat, and personal-agent usage on verified OpenRouter routes. Thanks @vincentkoc.

2930

- Plugins/update: on the beta OpenClaw update channel, default-line npm and ClawHub plugin updates try `@beta` first and fall back to default/latest when no plugin beta release exists.

3031

- Channels/WhatsApp: support explicit WhatsApp Channel/Newsletter `@newsletter` outbound message targets with channel session metadata instead of DM routing. Fixes #13417; carries forward the narrow outbound target idea from #13424. Thanks @vincentkoc and @agentz-manfred.

3132

- Exec approvals: add a tree-sitter-backed shell command explainer for future approval and command-review surfaces. (#75004) Thanks @jesse-merhi.

Original file line numberDiff line numberDiff line change

@@ -139,11 +139,11 @@ OpenRouter uses a Bearer token with your API key under the hood.

139139

On real OpenRouter requests (`https://openrouter.ai/api/v1`), OpenClaw also adds

140140

OpenRouter's documented app-attribution headers:

141141
142-

| Header | Value |

143-

| ------------------------- | --------------------- |

144-

| `HTTP-Referer` | `https://openclaw.ai` |

145-

| `X-OpenRouter-Title` | `OpenClaw` |

146-

| `X-OpenRouter-Categories` | `cli-agent` |

142+

| Header | Value |

143+

| ------------------------- | ------------------------------------------------------------------------------------------------------ |

144+

| `HTTP-Referer` | `https://openclaw.ai` |

145+

| `X-OpenRouter-Title` | `OpenClaw` |

146+

| `X-OpenRouter-Categories` | `cli-agent,cloud-agent,programming-app,creative-writing,writing-assistant,general-chat,personal-agent` |

147147
148148

<Warning>

149149

If you repoint the OpenRouter provider at some other proxy or base URL, OpenClaw

Original file line numberDiff line numberDiff line change

@@ -56,7 +56,8 @@ describe("proxy stream wrappers", () => {

5656

headers: {

5757

"HTTP-Referer": "https://openclaw.ai",

5858

"X-OpenRouter-Title": "OpenClaw",

59-

"X-OpenRouter-Categories": "cli-agent",

59+

"X-OpenRouter-Categories":

60+

"cli-agent,cloud-agent,programming-app,creative-writing,writing-assistant,general-chat,personal-agent",

6061

"X-Custom": "1",

6162

},

6263

},

Original file line numberDiff line numberDiff line change

@@ -115,7 +115,8 @@ describe("provider attribution", () => {

115115

headers: {

116116

"HTTP-Referer": "https://openclaw.ai",

117117

"X-OpenRouter-Title": "OpenClaw",

118-

"X-OpenRouter-Categories": "cli-agent",

118+

"X-OpenRouter-Categories":

119+

"cli-agent,cloud-agent,programming-app,creative-writing,writing-assistant,general-chat,personal-agent",

119120

},

120121

});

121122

});

@@ -128,7 +129,8 @@ describe("provider attribution", () => {

128129

).toEqual({

129130

"HTTP-Referer": "https://openclaw.ai",

130131

"X-OpenRouter-Title": "OpenClaw",

131-

"X-OpenRouter-Categories": "cli-agent",

132+

"X-OpenRouter-Categories":

133+

"cli-agent,cloud-agent,programming-app,creative-writing,writing-assistant,general-chat,personal-agent",

132134

});

133135

});

134136
Original file line numberDiff line numberDiff line change

@@ -123,6 +123,8 @@ function readCompatBoolean(

123123
124124

const OPENCLAW_ATTRIBUTION_PRODUCT = "OpenClaw";

125125

const OPENCLAW_ATTRIBUTION_ORIGINATOR = "openclaw";

126+

const OPENROUTER_ATTRIBUTION_CATEGORIES =

127+

"cli-agent,cloud-agent,programming-app,creative-writing,writing-assistant,general-chat,personal-agent";

126128
127129

const LOCAL_ENDPOINT_HOSTS = new Set(["localhost", "127.0.0.1", "::1", "[::1]"]);

128130

const OPENAI_RESPONSES_APIS = new Set([

@@ -473,7 +475,7 @@ function buildOpenRouterAttributionPolicy(

473475

headers: {

474476

"HTTP-Referer": "https://openclaw.ai",

475477

"X-OpenRouter-Title": identity.product,

476-

"X-OpenRouter-Categories": "cli-agent",

478+

"X-OpenRouter-Categories": OPENROUTER_ATTRIBUTION_CATEGORIES,

477479

},

478480

};

479481

}

Original file line numberDiff line numberDiff line change

@@ -457,7 +457,8 @@ describe("provider request config", () => {

457457

expect(resolved).toEqual({

458458

"HTTP-Referer": "https://openclaw.ai",

459459

"X-OpenRouter-Title": "OpenClaw",

460-

"X-OpenRouter-Categories": "cli-agent",

460+

"X-OpenRouter-Categories":

461+

"cli-agent,cloud-agent,programming-app,creative-writing,writing-assistant,general-chat,personal-agent",

461462

"X-Custom": "1",

462463

});

463464

});