<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mohammad Aboali on Medium]]></title>
        <description><![CDATA[Stories by Mohammad Aboali on Medium]]></description>
        <link>https://medium.com/@mohammad.aboali?source=rss-df44d0bcdff------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*AS8a8F1OGbECeYMx.</url>
            <title>Stories by Mohammad Aboali on Medium</title>
            <link>https://medium.com/@mohammad.aboali?source=rss-df44d0bcdff------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 20:59:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohammad.aboali/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[# OpenClaw Setup Postmortem: What Broke, Why It Broke, and What Actually Fixed It]]></title>
            <link>https://medium.com/@mohammad.aboali/openclaw-setup-postmortem-what-broke-why-it-broke-and-what-actually-fixed-it-0c58799fc7d2?source=rss-df44d0bcdff------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c58799fc7d2</guid>
            <dc:creator><![CDATA[Mohammad Aboali]]></dc:creator>
            <pubDate>Mon, 23 Feb 2026 16:21:03 GMT</pubDate>
            <atom:updated>2026-02-23T16:21:03.922Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the practical failure log behind a successful local OpenClaw setup on macOS + Docker.</p><p><a href="https://medium.com/@mohammad.aboali/i-wanted-openclaw-local-without-polluting-my-desktop-heres-the-setup-that-finally-worked-df8c582302ed">Installation Story — part1</a></p><p>Not theory — real issues, root causes, and fixes that held.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>Context</strong></p><p>- macOS host</p><p>- Docker Desktop</p><p>- local-first setup preference</p><p>- eventual migration to Ollama / Docker Model Runner</p><p>- minimal host pollution (container-first where possible)</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>1) First-run dashboard/gateway panel was unreliable</strong></p><p><strong>###</strong> <strong>Symptom</strong></p><p>Control panel URL didn’t open reliably during initial Docker setup.</p><p><strong>###</strong> <strong>Impact</strong></p><p>Blocked confidence early and made normal onboarding flow feel broken.</p><p><strong>###</strong> <strong>Fix</strong></p><p>Rerun onboarding wizard instead of forcing a damaged first-run state.</p><p><strong>###</strong> <strong>Why this worked</strong></p><p>Each pass let me stabilize one layer at a time: gateway → channel/pairing → model/provider → skills.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>2) Setup got slow because provider migration happened too early</strong></p><p><strong>###</strong> <strong>Symptom</strong></p><p>Repeated model verification failures during onboarding.</p><p><strong>###</strong> <strong>Root causes</strong></p><p>- endpoint URL/path mismatch</p><p>- model ID mismatch</p><p>- container-to-model-runner connectivity not validated first</p><p><strong>###</strong> <strong>Fix</strong></p><p>Start with known-good auth/provider for baseline operation, then migrate to local/custom provider in phase 2.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>3) Compose errors repeatedly blocked startup</strong></p><p><strong>###</strong> <strong>Errors seen</strong></p><p>- `services must be a mapping`</p><p>- duplicate mapping keys</p><p>- YAML token/indentation errors</p><p><strong>###</strong> <strong>Root causes</strong></p><p>- indentation drift / flattened YAML</p><p>- typo (`ervices:`)</p><p>- override targeting wrong service name</p><p><strong>###</strong> <strong>Fix</strong></p><p>- clean rewrite of compose files</p><p>- ensure override matches base service name (`openclaw-gateway`)</p><p>- validate every edit:</p><p>```bash</p><p>docker compose -f docker-compose.yml -f docker-compose.override.yml config</p><p>```</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>4) Permission failures (`/usr/local/bin` and npm globals)</strong></p><p><strong>###</strong> <strong>Errors seen</strong></p><p>- symlink permission denied in `/usr/local/bin`</p><p>- npm `EACCES` in `/usr/local/lib/node_modules`</p><p><strong>###</strong> <strong>Root cause</strong></p><p>Container ran non-root user, scripts assumed root-owned install paths.</p><p><strong>###</strong> <strong>Fix</strong></p><p>Use user-local paths:</p><p>- `/home/node/.local/bin`</p><p>- `/home/node/.npm-global/bin`</p><p>Persist PATH and npm prefix in bootstrap/compose.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>5) Restart loop from wrong startup command</strong></p><p><strong>###</strong> <strong>Symptom</strong></p><p>Container started, printed CLI help, exited, restarted.</p><p><strong>###</strong> <strong>Root cause</strong></p><p>Bootstrap launched non-daemon CLI command instead of gateway runtime.</p><p><strong>###</strong> <strong>Fix</strong></p><p>Final bootstrap `exec` must run gateway process (or rely on base compose command).</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>6) Manual JSON edits caused repeated config breakage</strong></p><p><strong>###</strong> <strong>Symptom</strong></p><p>Config invalidation after iterative hand edits.</p><p><strong>###</strong> <strong>Root causes</strong></p><p>- syntax mistakes</p><p>- stale enum values</p><p>- plugin/config interaction side effects</p><p><strong>###</strong> <strong>Fix pattern</strong></p><p>- backup before edits</p><p>- one change per step</p><p>- immediate validation</p><p>- rollback quickly when needed</p><p>Treat config as code, not scratchpad.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>7) Plugin duplication (`msteams`) persisted unexpectedly</strong></p><p><strong>###</strong> <strong>Symptom</strong></p><p>Duplicate plugin warnings kept returning even after folder rename.</p><p><strong>###</strong> <strong>Root cause</strong></p><p>Extension loader scanned contents under `/app/extensions`, including renamed folders.</p><p><strong>###</strong> <strong>Fix that held</strong></p><p>Move conflicting extension <strong>**out of scanned directory**</strong> entirely (not just rename in place).</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>8) Command execution workflow was unclear until `clawdock-shell`</strong></p><p><strong>###</strong> <strong>Symptom</strong></p><p>Early workflow depended on ad-hoc `docker exec` + raw node commands.</p><p><strong>###</strong> <strong>Fix</strong></p><p>Adopt `clawdock-shell` + shell completions as primary workflow.</p><p><strong>###</strong> <strong>Result</strong></p><p>- faster diagnostics</p><p>- fewer path/context mistakes</p><p>- better command discoverability</p><p>This is high-leverage setup, not optional polish.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>9) Telegram/device pairing needed explicit validation</strong></p><p><strong>###</strong> <strong>Symptom</strong></p><p>Channel setup looked complete, but pairing/access behavior wasn’t obvious.</p><p><strong>###</strong> <strong>Fix</strong></p><p>Validate as a dedicated step:</p><p>1. token setup</p><p>2. test message</p><p>3. pairing/allowlist confirmation</p><p>4. only then broaden access</p><p>This prevented silent access-policy mistakes later.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>10) Auth confusion: text bot vs API-key features</strong></p><p><strong>###</strong> <strong>Misunderstanding</strong></p><p>I assumed OpenAI API key was required for text bot operation.</p><p><strong>###</strong> <strong>Clarification</strong></p><p>- Text bot can run with Codex authentication in many setups.</p><p>- OpenAI API key is needed for Whisper/voice API workflows.</p><p>- Brave API key is needed for `web_search`.</p><p><strong>###</strong> <strong>Practical sequence</strong></p><p>Get text bot stable first, then add API keys for specific advanced features.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>11) Environment keys looked set but were placeholders</strong></p><p><strong>###</strong> <strong>Symptom</strong></p><p>Features appeared configured but still failed.</p><p><strong>###</strong> <strong>Root cause</strong></p><p>Placeholder values (`REPLACE_ME`) remained in env.</p><p><strong>###</strong> <strong>Fix</strong></p><p>Set real values and recreate container.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>12) Host cleanliness concern was valid</strong></p><p>I didn’t want everything installed directly on desktop.</p><p><strong>###</strong> <strong>Working model</strong></p><p>- container-first tooling</p><p>- minimal host dependencies</p><p>- explicit mounted output/config paths</p><p>Cleaner machine, cleaner rollback path.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>What worked best overall</strong></p><p>1. stable baseline first</p><p>2. rerun wizard when first-run state is flaky</p><p>3. use clawdock-shell + completions early</p><p>4. migrate providers only after endpoint validation</p><p>5. root mode only when needed</p><p>6. disciplined config edits</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>Final takeaway</strong></p><p>Most pain came from orchestration details, not OpenClaw core:</p><p>compose quality, permission model, endpoint reachability, and config hygiene.</p><p>Once those were controlled, setup became stable and predictable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c58799fc7d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[# I Wanted OpenClaw Local (Without Polluting My Desktop). Here’s the Setup That Finally Worked.]]></title>
            <link>https://medium.com/@mohammad.aboali/i-wanted-openclaw-local-without-polluting-my-desktop-heres-the-setup-that-finally-worked-df8c582302ed?source=rss-df44d0bcdff------2</link>
            <guid isPermaLink="false">https://medium.com/p/df8c582302ed</guid>
            <dc:creator><![CDATA[Mohammad Aboali]]></dc:creator>
            <pubDate>Mon, 23 Feb 2026 16:19:09 GMT</pubDate>
            <atom:updated>2026-02-23T16:22:56.481Z</atom:updated>
            <content:encoded><![CDATA[<p>I wanted OpenClaw running locally on my Mac, with the option to move to Ollama / Docker Model Runner later.</p><p>It did work — but not on the first try.</p><p>The hard part wasn’t OpenClaw itself. It was the glue: Docker networking, endpoint validation, permissions, plugin sprawl, and configuration drift.</p><p>If you want a clean local setup with minimal host clutter, this is the path that worked.</p><p><strong>— -</strong></p><p><a href="https://medium.com/@mohammad.aboali/openclaw-setup-postmortem-what-broke-why-it-broke-and-what-actually-fixed-it-0c58799fc7d2"><strong>Installation — Story Part 2 (troubleshooting)</strong></a></p><p><strong>##</strong> <strong>Start with one goal: stable first run</strong></p><p>My biggest mistake was trying to optimize everything at once:</p><p>- custom model provider</p><p>- multiple plugins</p><p>- deep config edits</p><p>- channel + pairing + security tuning in one pass</p><p>That made setup slow and fragile.</p><p>The winning strategy was staged rollout.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>Important auth clarification (I learned this late)</strong></p><p>I assumed OpenAI API keys were mandatory for basic text bot use. Not always.</p><p>- <strong>**Text bot**</strong> can run with <strong>**Codex authentication**</strong> in many setups.</p><p>- <strong>**OpenAI API key**</strong> is needed when you enable API-driven features like <strong>**Whisper/voice workflows**</strong>.</p><p>- <strong>**Brave API key**</strong> is needed for `web_search`.</p><p>That distinction alone removes a lot of early setup pressure.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>The setup sequence I recommend</strong></p><p><strong>##</strong> <strong>Phase 1: Fast success</strong></p><p>1. Run OpenClaw in Docker</p><p>2. Use working auth (e.g., Codex/OpenAI login path)</p><p>3. Configure one channel (Telegram is straightforward)</p><p>4. Confirm gateway + chat + core tools are stable</p><p><strong>##</strong> <strong>Phase 2: Advanced provider migration</strong></p><p>1. Add Ollama / Docker Model Runner</p><p>2. Validate endpoint from <strong>**inside container**</strong></p><p>3. Validate model ID + base URL path</p><p>4. Switch default model only after successful checks</p><p>This reduces rework dramatically.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>Docker install baseline</strong></p><p>```bash</p><p>git clone <a href="https://github.com/openclaw/openclaw.git">https://github.com/openclaw/openclaw.git</a></p><p>cd openclaw</p><p>./docker-setup.sh</p><p>```</p><p>During onboarding, keep it simple:</p><p>- token auth enabled</p><p>- minimal channel setup first</p><p>- avoid broad plugin/skill installs until baseline is stable</p><p>If the control panel URL fails to open in first run, rerun onboarding wizard. In practice, repeated wizard passes were more reliable than forcing a broken state forward.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>Telegram + pairing: treat this as its own checkpoint</strong></p><p>Don’t bury this inside a giant onboarding run.</p><p>Do it explicitly:</p><p>1. Add Telegram bot token</p><p>2. Validate DM/group behavior</p><p>3. Confirm pairing / allowlist behavior</p><p>4. Only then widen access</p><p>If behavior is inconsistent, rerun onboarding for channel flow before manually patching many config fields.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>Ollama / Docker Model Runner: where most time gets lost</strong></p><p>This is where setup usually slows down.</p><p>Typical blockers:</p><p>- container can’t reach model endpoint</p><p>- wrong base URL format (`/v1` mismatches)</p><p>- wrong model ID for provider</p><p>- Docker internal network route not prepared</p><p>If endpoint checks fail repeatedly, pause migration and keep stable provider until networking/model mapping is verified from inside container.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>Keep host clean: container-first approach</strong></p><p>I did not want everything installed directly on desktop.</p><p>The practical approach:</p><p>- keep tooling inside container whenever possible</p><p>- mount only required config/workspace/output folders</p><p>- avoid unnecessary global host installs</p><p>Result: cleaner machine, easier rollback, less environment drift.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>`clawdock-shell` + completions changed everything</strong></p><p>Early on, I used ad-hoc `docker exec` + raw commands. It worked, but it was slow and error-prone.</p><p>Using shell helpers (especially `clawdock-shell`) plus completions made daily operation much smoother:</p><p>- fewer path mistakes</p><p>- faster command discovery</p><p>- cleaner command execution flow</p><p>If you have clawdock helpers available, enable them early.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>Root access: use it as a tool, not a default</strong></p><p>Best operating model:</p><p>- default non-root for normal operation</p><p>- temporary root mode only when required</p><p>- revert to non-root immediately after fix</p><p>That balance gave flexibility without sacrificing safety.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>Configuration discipline saves hours</strong></p><p>Manual JSON edits are powerful — and easy to break.</p><p>Use this pattern:</p><p>- backup before every config change</p><p>- make one change at a time</p><p>- validate after each change</p><p>- avoid large multi-topic edits under pressure</p><p>Treat config like source code.</p><p><strong>— -</strong></p><p><strong>##</strong> <strong>Final takeaway</strong></p><p>If setup feels chaotic, it’s usually too many moving parts at once.</p><p>The sequence that consistently worked:</p><p>1. Stable initial setup with working auth</p><p>2. Channel + pairing validation</p><p>3. clawdock-shell/completion workflow</p><p>4. Provider migration (Ollama/model runner)</p><p>5. Optional plugins/skills</p><p>That turns OpenClaw setup from “debug marathon” into a controlled rollout.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df8c582302ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>