<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Api-Key on ErrorVault — Developer Error Code Dictionary</title><link>https://errorvault.dev/tags/api-key/</link><description>Recent content in Api-Key on ErrorVault — Developer Error Code Dictionary</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 14 Apr 2026 18:24:49 +0800</lastBuildDate><atom:link href="https://errorvault.dev/tags/api-key/feed.xml" rel="self" type="application/rss+xml"/><item><title>Fix clw-llm-denied: OpenClaw LLM request denied by provider policy</title><link>https://errorvault.dev/openclaw/openclaw-clw-llm-denied-request-denied/</link><pubDate>Tue, 14 Apr 2026 18:24:49 +0800</pubDate><guid>https://errorvault.dev/openclaw/openclaw-clw-llm-denied-request-denied/</guid><description>&lt;h2 id="1-symptoms">1. Symptoms&lt;/h2>
&lt;p>The &lt;code>clw-llm-denied&lt;/code> error in OpenClaw manifests during LLM inference requests, typically when interfacing with providers like OpenAI, Anthropic, or custom endpoints. Users encounter this in CLI invocations, Python integrations, or serverless deployments.&lt;/p>
&lt;p>Common symptoms include:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>$ clw infer --model gpt-4o --prompt &amp;#34;Generate malicious code&amp;#34;
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>clw-llm-denied: LLM request denied by provider. Reason: Policy violation (content flagged as harmful). Request ID: req_abc123.
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Error code: clw-llm-denied
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Or in Python:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-python" data-lang="python">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#ff79c6">import&lt;/span> openclaw
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>client &lt;span style="color:#ff79c6">=&lt;/span> openclaw&lt;span style="color:#ff79c6">.&lt;/span>Client(api_key&lt;span style="color:#ff79c6">=&lt;/span>&lt;span style="color:#f1fa8c">&amp;#34;sk-...&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>response &lt;span style="color:#ff79c6">=&lt;/span> client&lt;span style="color:#ff79c6">.&lt;/span>infer(model&lt;span style="color:#ff79c6">=&lt;/span>&lt;span style="color:#f1fa8c">&amp;#34;claude-3-opus&amp;#34;&lt;/span>, prompt&lt;span style="color:#ff79c6">=&lt;/span>&lt;span style="color:#f1fa8c">&amp;#34;Write a phishing email template&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#6272a4"># Raises: openclaw.LLMError: clw-llm-denied: Access denied. Insufficient permissions for model tier.&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>&lt;strong>HTTP 403/429 responses&lt;/strong> proxied through OpenClaw.&lt;/li>
&lt;li>Logs show &lt;code>provider_response: {&amp;quot;error&amp;quot;: &amp;quot;denied&amp;quot;, &amp;quot;details&amp;quot;: &amp;quot;rate_limit or policy&amp;quot;}&lt;/code>.&lt;/li>
&lt;li>Intermittent failures on specific prompts/models.&lt;/li>
&lt;li>No inference output; immediate rejection post-request serialization.&lt;/li>
&lt;/ul>
&lt;p>This error blocks all downstream processing, such as chaining inferences or batch jobs. Monitor OpenClaw logs (&lt;code>--verbose&lt;/code> flag) for full provider payloads:&lt;/p></description></item></channel></rss>