<?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 Tehmina on Medium]]></title>
        <description><![CDATA[Stories by Tehmina on Medium]]></description>
        <link>https://medium.com/@tn0457584?source=rss-585387329132------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*pUeu1-nxFdqNqMvT</url>
            <title>Stories by Tehmina on Medium</title>
            <link>https://medium.com/@tn0457584?source=rss-585387329132------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:38:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tn0457584/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[Introducing Claude Managed Agents:
You define done. Claude gets there.]]></title>
            <link>https://medium.com/@tn0457584/introducing-claude-managed-agents-you-define-done-claude-gets-there-5eb38045f6a7?source=rss-585387329132------2</link>
            <guid isPermaLink="false">https://medium.com/p/5eb38045f6a7</guid>
            <category><![CDATA[claude-managed-agents]]></category>
            <dc:creator><![CDATA[Tehmina]]></dc:creator>
            <pubDate>Fri, 10 Apr 2026 09:51:07 GMT</pubDate>
            <atom:updated>2026-04-10T09:51:07.276Z</atom:updated>
            <content:encoded><![CDATA[<p>Building agentic AI has always involved the same friction: stitching together orchestration logic, container management, tool access, memory, and multi-agent coordination yourself. Claude Managed Agents is a suite of APIs that removes that friction — giving you a production-grade agent platform without the infrastructure overhead.</p><p>Today we’re launching Claude Managed Agents: a set of APIs for building and deploying Claude-powered agents at scale. You define what the agent should do and what “done” looks like. Claude handles the execution — inside an isolated container with full file system access, bash execution, and web search — while you watch it happen in real time.</p><h3>What it is</h3><p>Managed Agents has a simple model. You define an agent with specific tools, personas, and capabilities. You configure a sandbox environment — specifying which packages are pre-installed and what network controls are in place. Then you fire off sessions from your own application. Claude runs the work inside that isolated container and streams every tool call back to you through the event stream.</p><p>Environments</p><p>Fully configurable sandboxes</p><p>Execution</p><p>Bash, file system, web search</p><p>Sessions</p><p>Parallel &amp; isolated per task</p><p>Memory</p><p>Persistent key-value store</p><p>Coordination</p><p>Multi-agent with specialists</p><p>Outcomes</p><p>Rubric-based grading loop</p><h3>Real work, not demos</h3><p>Here’s what this looks like in practice. A kanban board sits on top of Managed Agents. When a ticket moves to “In Progress,” a session fires automatically. The ticket says “Optimize website performance.” The backend creates a session, points it to an environment with Lighthouse and Puppeteer pre-installed, and mounts your GitHub repo into the container. Claude has the codebase, the tools, and a rubric:</p><p>Example — Website Performance Agent</p><p>Rubric: Lighthouse score above 90. No render-blocking resources. All images lazy-loaded.</p><p>Claude runs the audit, compresses images, inlines CSS, defers scripts. Every tool call streams back to the board in real time. The grader — running in its own context window — evaluates the output against the rubric. Claude reads the feedback, goes back in, fixes what it missed, and resubmits. Final score: 96.</p><p>Meanwhile, you drag a second ticket over. Two sessions. Two containers. Two separate tasks running in parallel.</p><p><em>“You define what done looks like. Claude works until it gets there.”</em></p><h3>Agents with memory</h3><p>Agents become dramatically more useful when they remember context across runs. Managed Agents includes a built-in memory store. Before each session starts, the agent checks what it found last time. After it finishes, it writes back what changed.</p><p>Example — SaaS Pricing Tracker</p><p>Claude searches the web for current pricing pages, checks for plan tier changes, flags new features that might affect contracts, runs a cost analysis in Python, writes an Excel summary, and — when the report is ready — posts a link to Slack and creates a review task in Asana, both through MCP servers.</p><p>Next Monday’s report reads: “Cloud compute 15% lower since last week” — not the same static pricing data it found the week before.</p><h3>Multi-agent coordination</h3><p>Some problems benefit from specialization. Managed Agents supports multi-agent coordination out of the box: a coordinator receives a task and delegates to specialist agents, each running in their own context window on a shared file system. Specialists report back; the coordinator synthesizes their findings.</p><p>Example — Incident Response</p><p>An alert fires from the monitoring stack. A coordinator delegates to three specialists. They report back. The coordinator synthesizes an incident summary — and before posting to Slack, the permissions policy fires. You see the draft on screen, approve it, and the message goes out.</p><p>Memory ties it together: the coordinator checks past incidents and flags a pattern — “This looks like the DNS resolution issue from two weeks ago caused by a misconfigured TTL.” The next time a similar alert fires, the agent starts with that context instead of diagnosing from scratch.</p><h3>What you get</h3><p>Claude Managed Agents gives you the complete stack to build a fully managed, stateful agent experience — agents, sessions, environments, tools, MCP integration, memory, outcome-based grading, and multi-agent coordination — without building any of the infrastructure yourself.</p><p>Claude Managed Agents is now in limited access for developers building production agentic workflows. Apply for access and review the API documentation at anthropic.com/managed-agents.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5eb38045f6a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Complete Guide: Claude Code with OpenRouter Integration]]></title>
            <link>https://medium.com/@tn0457584/complete-guide-claude-code-with-openrouter-integration-7bd0006824a1?source=rss-585387329132------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bd0006824a1</guid>
            <category><![CDATA[free]]></category>
            <category><![CDATA[vibe-coding-tools]]></category>
            <category><![CDATA[open-router]]></category>
            <category><![CDATA[anthropic-claude-code]]></category>
            <category><![CDATA[ai-development]]></category>
            <dc:creator><![CDATA[Tehmina]]></dc:creator>
            <pubDate>Sun, 29 Mar 2026 20:19:57 GMT</pubDate>
            <atom:updated>2026-03-29T20:19:57.388Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Author:</strong> Digital Labor Team<br> <strong>Date:</strong> March 29, 2026<br> <strong>Language:</strong> English<br> <strong>Reading Time:</strong> 15 minutes</p><h3>Table of Contents</h3><ol><li><a href="https://claude.ai/chat/dbcefd5a-2028-4d05-bd58-87bb1836737b#introduction">Introduction</a></li><li><a href="https://claude.ai/chat/dbcefd5a-2028-4d05-bd58-87bb1836737b#what-is-claude-code">What is Claude Code?</a></li><li><a href="https://claude.ai/chat/dbcefd5a-2028-4d05-bd58-87bb1836737b#why-openrouter">Why Use OpenRouter?</a></li><li><a href="https://claude.ai/chat/dbcefd5a-2028-4d05-bd58-87bb1836737b#prerequisites">Prerequisites</a></li><li><a href="https://claude.ai/chat/dbcefd5a-2028-4d05-bd58-87bb1836737b#installation">Step-by-Step Installation Guide</a></li><li><a href="https://claude.ai/chat/dbcefd5a-2028-4d05-bd58-87bb1836737b#configuration">Configuration for OpenRouter</a></li><li><a href="https://claude.ai/chat/dbcefd5a-2028-4d05-bd58-87bb1836737b#verification">Verification &amp; Testing</a></li><li><a href="https://claude.ai/chat/dbcefd5a-2028-4d05-bd58-87bb1836737b#troubleshooting">Troubleshooting</a></li><li><a href="https://claude.ai/chat/dbcefd5a-2028-4d05-bd58-87bb1836737b#advanced">Advanced Configuration</a></li><li><a href="https://claude.ai/chat/dbcefd5a-2028-4d05-bd58-87bb1836737b#resources">Resources &amp; References</a></li></ol><h3>Introduction {#introduction}</h3><p><strong>Claude Code</strong> is a powerful AI-powered coding agent that transforms how developers work. It operates directly from your terminal, allowing you to:</p><ul><li>Write, debug, and refactor code with AI assistance</li><li>Automate repetitive coding tasks</li><li>Build and test projects faster</li><li>Collaborate with AI on complex problems</li></ul><p><strong>OpenRouter</strong> acts as a sophisticated API gateway that provides:</p><ul><li>Multiple AI model access</li><li>Provider failover and redundancy</li><li>Budget management and cost tracking</li><li>Usage analytics and reporting</li><li>Enhanced reliability and uptime</li></ul><p>By combining Claude Code with OpenRouter, you get enterprise-grade reliability with simplified setup.</p><h3>What is Claude Code? {#what-is-claude-code}</h3><h3>Quick Overview</h3><p>Claude Code is a command-line interface that brings Claude’s AI capabilities directly to your development workflow.</p><p><strong>Official Documentation:</strong> 📚 <a href="https://code.claude.com/docs/en/quickstart"><strong>Claude Code Quickstart Guide</strong></a></p><h3>Key Features</h3><ul><li><strong>Native Integration</strong>: Works directly in your terminal (macOS, Linux, Windows)</li><li><strong>Real-time Coding</strong>: Get instant AI suggestions and code generation</li><li><strong>Multi-language Support</strong>: Supports JavaScript, Python, Go, Rust, C++, and more</li><li><strong>Project Understanding</strong>: AI understands your entire codebase context</li><li><strong>Version Control Integration</strong>: Works seamlessly with Git and GitHub</li></ul><h3>System Requirements</h3><ul><li><strong>Node.js</strong>: 18.0 or newer (for npm installation)</li><li><strong>Memory</strong>: 2GB minimum, 4GB+ recommended</li><li><strong>Disk Space</strong>: 500MB for installation</li><li><strong>Operating System</strong>:</li><li>Windows 10+ (with PowerShell)</li><li>macOS 11+</li><li>Linux (Ubuntu 20.04+)</li></ul><h3>Why Use OpenRouter? {#why-openrouter}</h3><h3>Benefits Overview</h3><h4>1. Provider Failover &amp; High Availability</h4><p>If Anthropic’s main API experiences outages or rate limits, OpenRouter automatically routes your requests to alternative providers without interruption.</p><pre>Your Request → OpenRouter → Provider 1 (Unavailable)<br>                         → Provider 2 (Available) ✓<br>                         → Continuous Service</pre><h4>2. Cost Optimization &amp; Budget Control</h4><ul><li>Set spending limits for your organization</li><li>Allocate budgets per team member or project</li><li>Prevent unexpected cost overruns</li><li>Track usage in real-time</li></ul><h4>3. Usage Analytics &amp; Monitoring</h4><ul><li>Complete visibility into how Claude Code is being used</li><li>Real-time dashboard at <a href="https://openrouter.ai/activity">OpenRouter Activity</a></li><li>Detailed cost breakdowns</li><li>Usage patterns and trends</li></ul><h4>4. Free Credits</h4><p>OpenRouter provides free monthly credits for testing and development!</p><p><strong>📊 Free Tier Information:</strong> 🎁 <a href="https://openrouter.ai/openrouter/free"><strong>OpenRouter Free Credits</strong></a></p><h4>5. Model Rankings &amp; Performance</h4><p>Compare different AI models and their performance metrics.</p><p><strong>🏆 Model Rankings:</strong> 📈 <a href="https://openrouter.ai/rankings"><strong>OpenRouter Model Rankings</strong></a></p><h4>6. Team Collaboration</h4><ul><li>Manage team settings centrally</li><li>Share configurations securely</li><li>Monitor team usage</li><li>Control permissions</li></ul><h3>Prerequisites {#prerequisites}</h3><p>Before starting, ensure you have:</p><h3>Required Items</h3><ul><li>[ ] <strong>Claude Code</strong> (not yet installed — we’ll do this)</li><li>[ ] <strong>OpenRouter Account</strong> (free — takes 2 minutes)</li><li>[ ] <strong>OpenRouter API Key</strong> (from settings)</li><li>[ ] <strong>Text Editor</strong> (VS Code, Notepad++, etc.)</li><li>[ ] <strong>PowerShell</strong> (Windows) or <strong>Terminal</strong> (macOS/Linux)</li><li>[ ] <strong>Internet Connection</strong> (for API calls)</li></ul><h3>Optional but Recommended</h3><ul><li>[ ] Git installed (for version control)</li><li>[ ] Docker installed (for containerized testing)</li><li>[ ] Node.js 18+ (for npm method)</li></ul><h3>Step-by-Step Installation Guide {#installation}</h3><h3>Phase 1: Create OpenRouter Account</h3><h4>Step 1: Sign Up for OpenRouter</h4><ol><li>Visit <a href="https://openrouter.ai/"><strong>OpenRouter.ai</strong></a></li><li>Click <strong>“Sign Up”</strong> button</li><li>Choose sign-up method:</li></ol><ul><li>Email + Password</li><li>Google Account</li><li>GitHub Account</li></ul><h4>Step 2: Verify Your Email</h4><ol><li>Check your email inbox</li><li>Click verification link</li><li>Complete any additional setup</li></ol><h4>Step 3: Generate API Key</h4><ol><li>After login, go to <strong>Settings</strong></li><li>Navigate to <strong>“Keys”</strong> section</li><li>Click <strong>“Create New Key”</strong></li><li>Give it a name (e.g., “Claude Code Local”)</li><li>Copy the key immediately</li></ol><p><strong>⚠️ IMPORTANT SECURITY NOTES:</strong></p><ul><li>API keys are sensitive credentials</li><li>Never share your key with anyone</li><li>Never commit keys to version control</li><li>Store in secure password manager</li><li>Regenerate if accidentally leaked</li></ul><p><strong>Example API Key Format:</strong></p><pre>sk-or-v1-34ad450b14ew50e6be5e20f099c2ad00c2ead2f553ccad150eb9b5d760</pre><h3>Phase 2: Install Claude Code</h3><h4>Option A: Windows CMD (Recommended for Windows)</h4><p>Open <strong>Command Prompt</strong> or <strong>PowerShell</strong> and run:</p><pre>curl -fsSL https://claude.ai/install.cmd -o install.cmd &amp;&amp; install.cmd &amp;&amp; del install.cmd</pre><p>This command:</p><ol><li>Downloads the Windows installer script</li><li>Executes the installation</li><li>Cleans up the installer</li></ol><p><strong>Time to Complete:</strong> 1–2 minutes</p><h4>Option B: Windows PowerShell</h4><pre>irm https://claude.ai/install.ps1 | iex</pre><h4>Option C: macOS/Linux</h4><pre>curl -fsSL https://claude.ai/install.sh | bash</pre><h4>Option D: Using npm (Universal)</h4><p>Requires Node.js 18+:</p><pre>npm install -g @anthropic-ai/claude-code</pre><h4>Verify Installation</h4><p>After installation, verify Claude Code is installed:</p><pre>claude --version</pre><p>Expected output:</p><pre>Claude Code v2.1.87 (or similar version number)</pre><h3>Phase 3: Project Setup</h3><h4>Step 1: Create or Navigate to Project Directory</h4><pre># Create new project<br>mkdir my-coding-project<br>cd my-coding-project</pre><pre># Or navigate to existing project<br>cd &quot;C:\Users\YourName\Projects\YourProject&quot;</pre><h4>Step 2: Create .claude Configuration Folder</h4><pre>mkdir .claude</pre><p>This creates a hidden folder for Claude Code settings.</p><h4>Step 3: Create settings.local.json</h4><p>Create a file: .claude/settings.local.json</p><p><strong>Using PowerShell:</strong></p><pre>New-Item -Path &quot;.\.claude\settings.local.json&quot; -Type File</pre><p><strong>Using any text editor:</strong></p><ol><li>Open your preferred text editor</li><li>Create new file</li><li>Paste content below</li><li>Save as .claude/settings.local.json in the .claude folder</li></ol><h3>Configuration for OpenRouter {#configuration}</h3><h3>Configuration Method: Project-Level (Recommended)</h3><p><strong>Why Project-Level?</strong> ✅ Isolated per project ✅ Team-shareable (without exposing secrets) ✅ Version control friendly ✅ No global system pollution ✅ Easy to maintain multiple projects</p><h3>Configure settings.local.json</h3><p>Edit .claude/settings.local.json and add:</p><pre>{<br>  &quot;env&quot;: {<br>    &quot;ANTHROPIC_BASE_URL&quot;: &quot;https://openrouter.ai/api&quot;,<br>    &quot;ANTHROPIC_AUTH_TOKEN&quot;: &quot;sk-or-v1-YOUR-OPENROUTER-API-KEY-HERE&quot;,<br>    &quot;ANTHROPIC_API_KEY&quot;: &quot;&quot;<br>  }<br>}</pre><p><strong>Configuration Explanation:</strong></p><p>Variable Value Purpose ANTHROPIC_BASE_URL https://openrouter.ai/api Routes requests to OpenRouter instead of Anthropic ANTHROPIC_AUTH_TOKEN Your OpenRouter API key Authentication credential ANTHROPIC_API_KEY Empty string &quot;&quot; Must be explicitly empty to avoid conflicts</p><h3>Complete Example</h3><pre>{<br>  &quot;env&quot;: {<br>    &quot;ANTHROPIC_BASE_URL&quot;: &quot;https://openrouter.ai/api&quot;,<br>    &quot;ANTHROPIC_AUTH_TOKEN&quot;: &quot;sk-or-v1-34ad450b14ew50e6be5e20f099c2ad00c2ead2f553ccad150eb9b5d760&quot;,<br>    &quot;ANTHROPIC_API_KEY&quot;: &quot;&quot;<br>  }<br>}</pre><h3>Alternative: Global Configuration (Advanced)</h3><p>If you want to use OpenRouter for all projects:</p><p><strong>Windows PowerShell:</strong></p><pre># Set environment variables<br>[System.Environment]::SetEnvironmentVariable(&quot;ANTHROPIC_BASE_URL&quot;, &quot;https://openrouter.ai/api&quot;, &quot;User&quot;)<br>[System.Environment]::SetEnvironmentVariable(&quot;ANTHROPIC_AUTH_TOKEN&quot;, &quot;sk-or-v1-YOUR-KEY&quot;, &quot;User&quot;)<br>[System.Environment]::SetEnvironmentVariable(&quot;ANTHROPIC_API_KEY&quot;, &quot;&quot;, &quot;User&quot;)</pre><pre># Restart PowerShell for changes to take effect</pre><p><strong>macOS/Linux (Add to ~/.zshrc or ~/.bashrc):</strong></p><pre>export ANTHROPIC_BASE_URL=&quot;https://openrouter.ai/api&quot;<br>export ANTHROPIC_AUTH_TOKEN=&quot;sk-or-v1-YOUR-KEY&quot;<br>export ANTHROPIC_API_KEY=&quot;&quot;</pre><p>Then reload:</p><pre>source ~/.zshrc  # or ~/.bashrc</pre><h3>Environment Variables Setup (Temporary)</h3><p>For testing, set variables in current session only:</p><pre>$env:ANTHROPIC_BASE_URL = &quot;https://openrouter.ai/api&quot;<br>$env:ANTHROPIC_AUTH_TOKEN = &quot;sk-or-v1-YOUR-KEY&quot;<br>$env:ANTHROPIC_API_KEY = &quot;&quot;</pre><h3>Verification &amp; Testing {#verification}</h3><h3>Step 1: Launch Claude Code</h3><pre>cd &quot;C:\Your\Project\Directory&quot;<br>claude</pre><h3>Step 2: Initial Setup</h3><p>Claude Code will:</p><ol><li>Ask for theme preference (choose any)</li><li>Configure local settings</li><li>Display welcome message</li></ol><p>Select your theme:</p><pre>Choose the text style that looks best with your terminal<br>1. Dark mode<br>2. Light mode<br>3. Dark mode (colorblind-friendly)<br>4. Light mode (colorblind-friendly)<br>5. Dark mode (ANSI colors only)<br>6. Light mode (ANSI colors only)</pre><pre>&gt; 5</pre><h3>Step 3: Verify Connection</h3><p>Run the status command:</p><pre>/status</pre><p><strong>Expected Output:</strong></p><pre>Auth token: ANTHROPIC_AUTH_TOKEN<br>Anthropic base URL: https://openrouter.ai/api</pre><p>✅ <strong>SUCCESS</strong> — Connected to OpenRouter!</p><h3>Step 4: Test with Simple Command</h3><p>Try a basic command:</p><pre>hello</pre><p>or</p><pre>write a simple hello world program in javascript</pre><h3>Step 5: Check Response</h3><p>Verify:</p><ul><li>Response arrives within 2–3 seconds</li><li>Claude provides helpful code suggestions</li><li>No authentication errors</li><li>Output is relevant to your prompt</li></ul><h3>Step 6: Monitor on OpenRouter Dashboard</h3><ol><li>Visit <a href="https://openrouter.ai/activity"><strong>OpenRouter Activity Dashboard</strong></a></li><li>Look for your recent requests</li><li>Verify billing information is correct</li><li>Check usage statistics</li></ol><h3>Troubleshooting {#troubleshooting}</h3><h3>Error 1: “Auth conflict: Both a token and an API key are set”</h3><p><strong>Cause:</strong> Multiple authentication methods are configured</p><p><strong>Solution:</strong></p><pre>/logout</pre><p>Then restart Claude Code:</p><pre>claude</pre><p>If persists:</p><ol><li>Check .claude/settings.local.json has &quot;ANTHROPIC_API_KEY&quot;: &quot;&quot;</li><li>Ensure no global ANTHROPIC_API_KEY environment variable is set</li><li>Restart PowerShell completely</li></ol><h3>Error 2: “Unexpected token in expression”</h3><p><strong>Cause:</strong> Pasting multi-line commands</p><p><strong>Solution:</strong> Enter commands one at a time:</p><pre># First command<br>$env:ANTHROPIC_BASE_URL = &quot;https://openrouter.ai/api&quot;<br># Press Enter</pre><p>Wait for prompt, then:</p><pre># Second command<br>$env:ANTHROPIC_AUTH_TOKEN = &quot;sk-or-v1-YOUR-KEY&quot;<br># Press Enter</pre><p>Wait for prompt, then:</p><pre># Third command<br>$env:ANTHROPIC_API_KEY = &quot;&quot;<br># Press Enter</pre><h3>Error 3: “Invalid API key or authentication failed”</h3><p><strong>Checks:</strong></p><ol><li>API key is copied correctly?</li><li>Key starts with sk-or-v1-?</li><li>JSON syntax is valid?</li><li>No extra spaces in configuration?</li></ol><p><strong>Solution:</strong></p><ol><li>Go to <a href="https://openrouter.ai/settings/keys">OpenRouter Settings/Keys</a></li><li>Generate new API key</li><li>Update settings.local.json</li><li>Save and restart Claude Code</li></ol><h3>Error 4: “Model not found or no access”</h3><p><strong>Cause:</strong> Specified model doesn’t exist or you don’t have access</p><p><strong>Solution:</strong></p><ol><li>Check <a href="https://openrouter.ai/rankings">OpenRouter Model Rankings</a></li><li>Verify model exists and is available</li><li>Use default Claude models (recommended)</li></ol><h3>Error 5: “Connection timeout or slow response”</h3><p><strong>Cause:</strong> Network issues or OpenRouter unavailable</p><p><strong>Steps to Fix:</strong></p><ol><li>Check internet connection</li><li>Test connection: ping openrouter.ai</li><li>Check OpenRouter status</li><li>Try again in 30 seconds</li><li>Check <a href="https://openrouter.ai/openrouter/free">OpenRouter free credits</a> availability</li></ol><h3>Error 6: “settings.local.json not found”</h3><p><strong>Cause:</strong> Configuration file in wrong location</p><p><strong>Solution:</strong></p><ol><li>Verify .claude folder exists in project root</li><li>Verify settings.local.json is in .claude folder</li><li>Check file name spelling (case-sensitive on Linux/macOS)</li></ol><p><strong>Verify structure:</strong></p><pre>your-project/<br>├── .claude/<br>│   └── settings.local.json  ← Should be here<br>├── src/<br>├── package.json<br>└── README.md</pre><h3>Advanced Configuration {#advanced}</h3><h3>Using Specific Claude Models</h3><p>Customize which Claude model is used for different tasks:</p><pre>{<br>  &quot;env&quot;: {<br>    &quot;ANTHROPIC_BASE_URL&quot;: &quot;https://openrouter.ai/api&quot;,<br>    &quot;ANTHROPIC_AUTH_TOKEN&quot;: &quot;sk-or-v1-YOUR-KEY&quot;,<br>    &quot;ANTHROPIC_API_KEY&quot;: &quot;&quot;,<br>    &quot;ANTHROPIC_DEFAULT_OPUS_MODEL&quot;: &quot;anthropic/claude-opus-4.6&quot;,<br>    &quot;ANTHROPIC_DEFAULT_SONNET_MODEL&quot;: &quot;anthropic/claude-sonnet-4.6&quot;,<br>    &quot;ANTHROPIC_DEFAULT_HAIKU_MODEL&quot;: &quot;anthropic/claude-haiku-4.5&quot;,<br>    &quot;CLAUDE_CODE_SUBAGENT_MODEL&quot;: &quot;anthropic/claude-opus-4.6&quot;<br>  }<br>}</pre><p><strong>Model Selection Guide:</strong></p><p>Model Best For Speed Cost Claude Opus 4.6 Complex reasoning, architecture Slow High Claude Sonnet 4.6 General coding tasks Medium Medium Claude Haiku 4.5 Quick completions, simple tasks Fast Low</p><p><strong>Current Rankings:</strong> 📊 Check <a href="https://openrouter.ai/rankings">OpenRouter Model Rankings</a> for latest performance data</p><h3>Team Configuration Template</h3><p>For team sharing, create a template settings.template.json:</p><pre>{<br>  &quot;env&quot;: {<br>    &quot;ANTHROPIC_BASE_URL&quot;: &quot;https://openrouter.ai/api&quot;,<br>    &quot;ANTHROPIC_AUTH_TOKEN&quot;: &quot;REPLACE_WITH_YOUR_OPENROUTER_KEY&quot;,<br>    &quot;ANTHROPIC_API_KEY&quot;: &quot;&quot;<br>  }<br>}</pre><p><strong>Instructions for team:</strong></p><ol><li>Copy settings.template.json to settings.local.json</li><li>Replace REPLACE_WITH_YOUR_OPENROUTER_KEY with personal key</li><li>Never commit settings.local.json to git</li></ol><p>Add to .gitignore:</p><pre>.claude/settings.local.json<br>.claude/settings.local.json.backup</pre><h3>Custom Statusline with Cost Tracking</h3><p>Add real-time cost tracking to Claude Code:</p><pre>{<br>  &quot;statusLine&quot;: {<br>    &quot;type&quot;: &quot;command&quot;,<br>    &quot;command&quot;: &quot;/path/to/cost-tracker.sh&quot;<br>  }<br>}</pre><p>This displays:</p><ul><li>Current provider</li><li>Active model</li><li>Cumulative cost for session</li><li>Cache discount information</li></ul><h3>Useful Commands</h3><h3>Claude Code Commands</h3><pre>/help              Show all available commands<br>/status            Display connection and model information<br>/logout            Sign out from Claude Code<br>/theme             Change color theme<br>/model             Select AI model for session<br>/clear             Clear conversation history<br>/exit              Exit Claude Code</pre><h3>OpenRouter Related</h3><pre># Check OpenRouter account status<br>/status</pre><pre># View current model being used<br>/model</pre><pre># Switch to different authentication method<br>/logout</pre><h3>Security Best Practices</h3><h3>1. API Key Management</h3><p>✅ <strong>DO:</strong></p><ul><li>Store keys in secure password manager</li><li>Regenerate keys quarterly</li><li>Use different keys for different projects</li><li>Monitor key usage in dashboard</li><li>Revoke compromised keys immediately</li></ul><p>❌ <strong>DON’T:</strong></p><ul><li>Share keys via email or chat</li><li>Commit keys to version control</li><li>Use same key across multiple organizations</li><li>Leave keys in browser history</li><li>Store in plain text files</li></ul><h3>2. Configuration File Security</h3><p><strong>Protect </strong><strong>.claude/settings.local.json:</strong></p><pre># Add to .gitignore<br>.claude/settings.local.json<br>.claude/settings.local.json.*</pre><p><strong>File Permissions:</strong></p><pre># macOS/Linux - make readable only by owner<br>chmod 600 .claude/settings.local.json</pre><h3>3. Team Sharing</h3><ul><li>Share configuration structure, not actual keys</li><li>Each team member uses personal API key</li><li>Use OpenRouter team/organization features</li><li>Enable spending limits per member</li><li>Regular access audits</li></ul><h3>Cost Optimization Tips</h3><h3>1. Monitor Usage</h3><p><strong>Check spending regularly:</strong></p><ol><li>Go to <a href="https://openrouter.ai/activity">OpenRouter Activity Dashboard</a></li><li>Review daily/weekly costs</li><li>Identify high-usage projects</li></ol><h3>2. Use Appropriate Models</h3><ul><li>Use <strong>Haiku</strong> for simple tasks (lowest cost)</li><li>Use <strong>Sonnet</strong> for general coding</li><li>Reserve <strong>Opus</strong> for complex reasoning</li></ul><h3>3. Free Credits</h3><p>OpenRouter provides <strong>free monthly credits!</strong></p><p>📊 <a href="https://openrouter.ai/openrouter/free"><strong>View Free Credits Information</strong></a></p><h3>4. Batch Operations</h3><ul><li>Group similar tasks together</li><li>Reuse conversation context</li><li>Minimize token waste</li></ul><h3>5. Set Budget Alerts</h3><p>In OpenRouter dashboard:</p><ol><li>Settings → Billing</li><li>Set monthly spending limit</li><li>Enable email alerts</li><li>Monitor costs proactively</li></ol><h3>Integration with Other Tools</h3><h3>GitHub Actions</h3><p>Use Claude Code in automated workflows:</p><pre>name: Code Generation with Claude<br>on: [push]</pre><pre>jobs:<br>  claude-code:<br>    runs-on: ubuntu-latest<br>    steps:<br>      - uses: actions/checkout@v3<br>      - name: Install Claude Code<br>        run: curl -fsSL <a href="https://claude.ai/install.sh">https://claude.ai/install.sh</a> | bash<br>      - name: Run Claude Code<br>        env:<br>          ANTHROPIC_BASE_URL: <a href="https://openrouter.ai/api">https://openrouter.ai/api</a><br>          ANTHROPIC_AUTH_TOKEN: ${{ secrets.OPENROUTER_API_KEY }}<br>          ANTHROPIC_API_KEY: &quot;&quot;<br>        run: claude</pre><h3>Docker Integration</h3><p>Create a Dockerfile:</p><pre>FROM node:18</pre><pre>RUN curl -fsSL <a href="https://claude.ai/install.sh">https://claude.ai/install.sh</a> | bash</pre><pre>ENV ANTHROPIC_BASE_URL=https://openrouter.ai/api<br>ENV ANTHROPIC_AUTH_TOKEN=${OPENROUTER_API_KEY}<br>ENV ANTHROPIC_API_KEY=&quot;&quot;</pre><pre>WORKDIR /app<br>CMD [&quot;claude&quot;]</pre><h3>Useful Resources &amp; References {#resources}</h3><h3>Official Documentation</h3><p>📚 <strong>Claude Code</strong></p><ul><li><a href="https://code.claude.com/docs/en/quickstart">Claude Code Quickstart</a></li><li><a href="https://code.claude.com/docs">Official Documentation</a></li></ul><p>📚 <strong>OpenRouter</strong></p><ul><li><a href="https://openrouter.ai/docs">OpenRouter Complete Documentation</a></li><li><a href="https://openrouter.ai/docs/guides/coding-agents/claude-code-integration">Claude Code Integration Guide</a></li><li><a href="https://openrouter.ai/docs/api/overview">API Documentation</a></li></ul><h3>Dashboards &amp; Tools</h3><p>🎨 <strong>OpenRouter</strong></p><ul><li><a href="https://openrouter.ai/">Main Dashboard</a></li><li><a href="https://openrouter.ai/activity">Activity Monitor</a> — Track usage and costs</li><li><a href="https://openrouter.ai/rankings">Model Rankings</a> — Compare AI models</li><li><a href="https://openrouter.ai/openrouter/free">Free Credits Info</a> — Check available credits</li><li><a href="https://openrouter.ai/settings/keys">API Keys Settings</a> — Manage authentication</li></ul><h3>Community &amp; Support</h3><p>💬 <strong>Getting Help</strong></p><ul><li>OpenRouter Discord Community</li><li>Claude Code GitHub Issues</li><li>Stack Overflow (tag: claude-code)</li></ul><h3>Related Articles</h3><ul><li>Claude Code Best Practices</li><li>OpenRouter vs Other API Gateways</li><li>AI-Assisted Development Workflows</li><li>Cost Optimization for AI Tools</li></ul><h3>Frequently Asked Questions</h3><h3>Q: Is Claude Code free?</h3><p><strong>A:</strong> Claude Code is free to install and use with your own API key. OpenRouter provides free monthly credits for getting started, with paid plans for additional usage.</p><h3>Q: Can I use multiple projects with OpenRouter?</h3><p><strong>A:</strong> Yes! Each project can have its own .claude/settings.local.json configuration. You can even use different API keys per project.</p><h3>Q: How do I switch between Anthropic and OpenRouter?</h3><p><strong>A:</strong> Simply change ANTHROPIC_BASE_URL and authentication tokens, then restart Claude Code:</p><pre>/logout</pre><h3>Q: Is my code safe with OpenRouter?</h3><p><strong>A:</strong> Yes. OpenRouter maintains strict privacy standards. Code is not logged unless you explicitly enable prompt logging in settings.</p><h3>Q: What if my API key is compromised?</h3><p><strong>A:</strong> Immediately:</p><ol><li>Go to <a href="https://openrouter.ai/settings/keys">OpenRouter Settings/Keys</a></li><li>Click “Revoke” on the compromised key</li><li>Generate a new key</li><li>Update your configuration</li></ol><h3>Q: Can I use Claude Code with teams?</h3><p><strong>A:</strong> Yes! OpenRouter supports team management:</p><ol><li>Create organization on OpenRouter</li><li>Invite team members</li><li>Share configuration template (without keys)</li><li>Each member uses personal API key</li><li>Monitor team usage and costs</li></ol><h3>Q: What models are available?</h3><p><strong>A:</strong> Check the <a href="https://openrouter.ai/rankings">OpenRouter Model Rankings</a> page for:</p><ul><li>Complete list of available models</li><li>Performance benchmarks</li><li>Speed comparisons</li><li>Cost per 1k tokens</li></ul><h3>Q: How much does it cost?</h3><p><strong>A:</strong> Pricing varies by model. Check OpenRouter dashboard for:</p><ul><li>Current pricing</li><li>Free credits available</li><li>Cost per token</li><li>Monthly usage reports</li></ul><h3>Q: Can I use Claude Code offline?</h3><p><strong>A:</strong> No, Claude Code requires internet connection to reach OpenRouter API.</p><h3>Q: How do I report bugs?</h3><p><strong>A:</strong></p><ol><li>Check existing GitHub issues</li><li>Provide reproduction steps</li><li>Include error messages</li><li>Share environment details (OS, version, etc.)</li></ol><h3>Next Steps</h3><h3>Quick Wins</h3><ol><li>✅ Complete installation</li><li>✅ Run first /status command</li><li>✅ Generate simple code</li><li>✅ Check OpenRouter dashboard</li><li>✅ Explore Claude Code features</li></ol><h3>Intermediate Tasks</h3><ol><li>📋 Create project template</li><li>🔐 Set up team configuration</li><li>💰 Configure budget alerts</li><li>📊 Monitor usage patterns</li><li>🚀 Integrate with CI/CD</li></ol><h3>Advanced Setup</h3><ol><li>🐳 Docker containerization</li><li>🤖 Custom automation scripts</li><li>🔌 MCP server integration</li><li>📈 Usage analytics pipeline</li><li>🏢 Enterprise setup</li></ol><h3>Conclusion</h3><p>You now have a complete, production-ready setup of Claude Code with OpenRouter!</p><p><strong>What You’ve Accomplished:</strong> ✅ Installed Claude Code ✅ Created OpenRouter account ✅ Configured project-level settings ✅ Verified connection ✅ Learned troubleshooting ✅ Understood cost optimization</p><p><strong>Happy Coding!</strong> 🚀</p><h3>Support &amp; Feedback</h3><p>Have questions or found issues?</p><p><strong>Resources:</strong></p><ul><li>📧 OpenRouter Support: <a href="https://openrouter.ai/">support.openrouter.ai</a></li><li>💬 Community Discord: OpenRouter Community</li><li>🐛 Bug Reports: GitHub Issues</li><li>📖 Documentation: See references section</li></ul><p><em>Last Updated: March 29, 2026</em></p><p><strong>Version:</strong> 1.0</p><p><strong>Changelog:</strong></p><ul><li>Added Windows CMD installation method</li><li>Included all reference links</li><li>Added model rankings information</li><li>Enhanced troubleshooting section</li><li>Included advanced configuration examples</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bd0006824a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Progressive Disclosure Is Quietly Reshaping How AI Agents Are Built]]></title>
            <link>https://medium.com/@tn0457584/progressive-disclosure-is-quietly-reshaping-how-ai-agents-are-built-8314ea6510da?source=rss-585387329132------2</link>
            <guid isPermaLink="false">https://medium.com/p/8314ea6510da</guid>
            <dc:creator><![CDATA[Tehmina]]></dc:creator>
            <pubDate>Tue, 13 Jan 2026 09:44:22 GMT</pubDate>
            <atom:updated>2026-01-13T09:44:22.689Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the last few months, something unusual has been happening in AI infrastructure.</p><p>Companies that don’t normally coordinate — <strong>Cloudflare, Anthropic, Vercel, Cursor</strong>, and others — have all independently arrived at the same architectural conclusion about AI agents.</p><p>Not through hype.<br> Not through benchmarks alone.<br> But through painful, hands-on experience building real systems.</p><p>The conclusion is surprisingly simple:</p><blockquote><strong><em>AI agents work better when you stop showing them everything.</em></strong></blockquote><p>This idea — <strong>progressive disclosure</strong> — is quickly becoming one of the most important design patterns in modern agentic systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pgn_mlTjBQDV3Cc9qAoNJg.png" /></figure><h3>The Original Mistake: Treating Context Like Free Memory</h3><p>For most of the last year, agent design followed a predictable pattern:</p><ul><li>Load all tools into context</li><li>Inject MCP schemas upfront</li><li>Hope the model figures it out</li></ul><p>It felt safe. Comprehensive. Future-proof.</p><p>It was also deeply inefficient.</p><p>Large tool libraries created three compounding problems:</p><ol><li><strong>Context bloat</strong> — tens of thousands of tokens before the agent even starts reasoning</li><li><strong>Cost leakage</strong> — paying for tools that may never be used</li><li><strong>Weaker results</strong> — large contexts dilute attention and degrade accuracy</li></ol><p>The industry quietly optimized GPUs and models — while ignoring the real bottleneck: <strong>context misuse</strong>.</p><h3>Cloudflare’s Insight: Models Prefer Code Over Schemas</h3><p>In September, Cloudflare published a blog post with an uncomfortable thesis:</p><blockquote>We’ve been using MCP wrong.</blockquote><p>Instead of loading MCP definitions into the model’s context, Cloudflare tried something radical:</p><ul><li>Convert MCPs into <strong>TypeScript APIs</strong></li><li>Execute them in <strong>isolated sandboxes</strong></li><li>Let the model write and run code</li></ul><p>The outcome wasn’t incremental — it was decisive:</p><ul><li><strong>98.7% reduction in token usage</strong></li><li>More reliable tool execution</li><li>Less brittle prompting</li></ul><p>The key realization?</p><blockquote><em>Models are excellent at writing code.<br> They are not great at reasoning over massive static tool schemas.</em></blockquote><h3>Anthropic Confirms the Pattern (Quietly)</h3><p>A few months later, Anthropic released several features that reinforced the same idea — without much fanfare.</p><h3>Tool Search</h3><p>Instead of loading all tools upfront, Claude now:</p><ul><li>Discovers tools <strong>on demand</strong></li><li>Only sees what’s relevant to the current task</li></ul><p><strong>Results:</strong></p><ul><li>Context dropped from ~77,000 tokens to ~8,700</li><li><strong>85% token reduction</strong></li><li>Significant accuracy gains across MCP evaluations</li></ul><h3>Programmatic Tool Calling</h3><p>Tools are executed inside a <strong>code execution environment</strong>, not through static JSON calls.</p><h3>File-Based Memory</h3><p>Memory isn’t a vector store by default.<br> It’s just files — markdown, scripts, artifacts.</p><p>Readable. Writable. Searchable.</p><p>Simple.</p><h3>Cursor, Vercel, and Industry Convergence</h3><p>Cursor later published nearly identical findings:</p><ul><li>On-demand tool discovery</li><li>~47% reduction in agent tokens</li><li>Faster and more reliable workflows</li></ul><p>When competitors with different stacks arrive at the same solution independently, it’s usually a signal — not a coincidence.</p><h3>Progressive Disclosure: The New Agent Primitive</h3><p>Progressive disclosure flips the old mental model on its head.</p><p>Instead of asking:</p><blockquote><em>“What should I put into the prompt?”</em></blockquote><p>We ask:</p><blockquote><em>“What should the agent be able to discover?”</em></blockquote><h3>Old Model vs New Model</h3><p>OldNewTools in contextTools as filesStatic schemasOn-demand discoveryJSON tool callsCode executionVector-heavy memoryFile-based memoryLarge contextSmall working memory</p><p>Agents no longer <em>carry</em> knowledge.<br> They <strong>look it up</strong>.</p><h3>Why File Systems and Bash Win</h3><p>Here’s the uncomfortable truth:</p><p>Every agent already knows how to use:</p><ul><li>A file system</li><li>Bash</li><li>Search</li><li>Code execution</li></ul><p>You don’t need to preload:</p><ul><li>Databases</li><li>APIs</li><li>Tool definitions</li><li>Protocol schemas</li></ul><p>Once an agent can read, write, search, and execute code, it can teach itself the rest — incrementally.</p><p>This is why <strong>sandboxes</strong> are becoming foundational across platforms:</p><ul><li>Cloudflare</li><li>Anthropic</li><li>Vercel</li><li>Cursor</li><li>Lovable</li><li>Daytona</li></ul><p>The architecture is converging whether we planned it or not.</p><h3>MCP Isn’t Dead — It’s Growing Up</h3><p>Despite criticism, MCP isn’t going anywhere.</p><p>What’s changing is <strong>how it’s used</strong>.</p><p>Instead of:</p><blockquote><em>“Inject MCP schemas into every request”</em></blockquote><p>We move toward:</p><blockquote><em>“Expose MCP-backed capabilities through code, discovered when needed”</em></blockquote><p>Same protocol.<br> Better ergonomics.</p><h3>Why This Matters More Than Token Savings</h3><p>Yes, this approach:</p><ul><li>Cuts costs</li><li>Speeds up agents</li><li>Improves accuracy</li></ul><p>But the bigger unlock is <strong>ambition</strong>.</p><p>We can now build:</p><ul><li>Agents that run for hours</li><li>Systems with thousands of integrations</li><li>Autonomous workflows without orchestration hell</li></ul><p>Context is no longer the limiting factor.</p><h3>The New Rule of Thumb</h3><p>If there’s one principle emerging from all of this:</p><blockquote><strong><em>Give the agent a file system and bash — and get out of the way.</em></strong></blockquote><p>Tools become files.<br> Discovery becomes search.<br> Execution becomes code.<br> Context stays small.</p><p>This is what real paradigm shifts look like — not loud, but inevitable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8314ea6510da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Another Way to Use Claude for Free — Through Bonsai CLI]]></title>
            <link>https://medium.com/@tn0457584/another-way-to-use-claude-for-free-through-bonsai-cli-fa46fe37c514?source=rss-585387329132------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa46fe37c514</guid>
            <dc:creator><![CDATA[Tehmina]]></dc:creator>
            <pubDate>Fri, 26 Dec 2025 08:48:21 GMT</pubDate>
            <atom:updated>2025-12-26T08:48:21.527Z</atom:updated>
            <content:encoded><![CDATA[<h3>🚀 Another Way to Use Claude for Free — Through Bonsai CLI</h3><p>If you’ve been searching for <strong>“how to use Claude free”</strong>, you’re not alone. Claude has quickly become one of the most powerful <strong>AI writing and coding assistants</strong> available today. While many users access Claude AI through web apps, there is <strong>another powerful way to use Claude for free</strong> — by leveraging the <strong>Bonsai CLI</strong>.</p><p>In this guide, you’ll learn what Bonsai CLI is, why it matters, and how you can use it to start <strong>Claude Code</strong> directly from your command line.</p><h3>🌱 What is Bonsai CLI?</h3><p><strong>Bonsai CLI</strong> is a command-line interface that allows developers and AI enthusiasts to:</p><ul><li>run AI models directly from the terminal</li><li>start <strong>Claude Code sessions</strong></li><li>experiment with frontier AI models</li><li>streamline development workflows</li></ul><p>It’s fast, lightweight, and perfect for people comfortable using the terminal.</p><p>This makes it an excellent option if you want to <strong>use Claude AI free</strong> without always relying on browser-based tools.</p><h3>🔧 How to Install Bonsai CLI (Step-by-Step)</h3><p>To get started, you’ll first need <strong>Node.js and npm</strong> installed on your system.</p><p>Once that’s done, install Bonsai CLI globally using npm:</p><pre>npm install -g @bonsai-ai/cli</pre><p>That’s it — Bonsai CLI is now installed on your machine.</p><h3>🔐 Login to Your Bonsai Account</h3><p>After installation, log in using:</p><pre>bonsai login</pre><p>You will be prompted to authenticate your account. Once logged in, you can begin using Claude through Bonsai.</p><h3>💻 Start Using Claude Code with Bonsai</h3><p>Here comes the exciting part.</p><p>To start a <strong>Claude Code session</strong>, simply run:</p><pre>bonsai start claude</pre><p>When your session starts:</p><ul><li>you’re automatically assigned a <strong>frontier AI model</strong></li><li><strong>model names are hidden</strong> in stealth mode</li><li>this allows <strong>objective performance testing without bias</strong></li></ul><p>This makes Bonsai a strong option for those who want to experiment with <strong>advanced AI coding assistants</strong> via command line.</p><h3>🚪 How to Log Out of Bonsai</h3><p>When you’re done, log out safely with:</p><pre>bonsai logout</pre><h3>⭐ Why Use Claude with Bonsai CLI?</h3><p>Using Claude through Bonsai CLI gives you:</p><ul><li>fast terminal-based AI coding experience</li><li>distraction-free environment</li><li>powerful Claude Code features</li><li>potential <strong>free access opportunities</strong> depending on availability</li><li>developer-friendly workflow</li></ul><p>It’s especially useful for:</p><ul><li>programmers</li><li>students</li><li>AI enthusiasts</li><li>technical writers</li><li>automation lovers</li></ul><h3>📌 Final Thoughts</h3><p>If you’re exploring <strong>another way to use Claude free</strong>, the <strong>Bonsai CLI</strong> is a powerful option worth trying. It combines the strength of <strong>Claude AI</strong> with the simplicity of the command line, making it ideal for both productivity and experimentation.</p><p>As always, availability can vary, and you should follow Bonsai and Claude’s <strong>official terms of service</strong> — but this approach opens up exciting possibilities for learning and development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa46fe37c514" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Claude Code + Gemini Full Setup (Windows Guide)]]></title>
            <link>https://medium.com/@tn0457584/claude-code-gemini-full-setup-windows-guide-d8e62629893f?source=rss-585387329132------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8e62629893f</guid>
            <dc:creator><![CDATA[Tehmina]]></dc:creator>
            <pubDate>Sat, 06 Dec 2025 13:43:59 GMT</pubDate>
            <atom:updated>2025-12-06T13:43:59.385Z</atom:updated>
            <content:encoded><![CDATA[<p>This guide helps you set up Claude-Code + Gemini Models together using<br>claude-code + claude-code-router.</p><h3>🔥 STEP 0 — Confirm Node.js</h3><p>PowerShell open karein → run:</p><pre>node --version</pre><p>Agar 18+ version nahi hai → install karein:</p><p>👉 <a href="https://nodejs.org/">https://nodejs.org</a></p><h3>🔥 STEP 1 — GET GOOGLE API KEY</h3><ol><li>Open: <a href="https://aistudio.google.com/">https://aistudio.google.com</a></li><li>Click → Get API Key</li><li>Click → Create API Key</li><li>Key copy kar len (example):</li></ol><ul><li>AIzaSy........</li></ul><h3>🔥 STEP 2 — INSTALL REQUIRED TOOLS</h3><p>PowerShell (Run as Administrator):</p><pre>npm install -g @anthropic-ai/claude-code @musistudio/claude-code-router</pre><h3>🔥 STEP 3 — CREATE CONFIG FOLDERS</h3><p>PowerShell (normal mode):</p><pre>mkdir $HOME/.claude-code-router<br>mkdir $HOME/.claude</pre><h3>🔥 STEP 4 — CREATE CONFIG.JSON (WINDOWS VERSION)</h3><p>Windows me cat &lt;&lt; EOF work nahi karta, isliye Notepad method use hoga.</p><p>Run:</p><pre>notepad $HOME/.claude-code-router/config.json</pre><p>Notepad open hoga → isme ye exact JSON paste karein:</p><pre>{<br>  &quot;LOG&quot;: true,<br>  &quot;LOG_LEVEL&quot;: &quot;info&quot;,<br>  &quot;HOST&quot;: &quot;127.0.0.1&quot;,<br>  &quot;PORT&quot;: 3456,<br>  &quot;API_TIMEOUT_MS&quot;: 600000,<br>  &quot;Providers&quot;: [<br>    {<br>      &quot;name&quot;: &quot;gemini&quot;,<br>      &quot;api_base_url&quot;: &quot;https://generativelanguage.googleapis.com/v1beta/models/&quot;,<br>      &quot;api_key&quot;: &quot;$GOOGLE_API_KEY&quot;,<br>      &quot;models&quot;: [<br>        &quot;gemini-2.5-flash&quot;,<br>        &quot;gemini-2.0-flash&quot;<br>      ],<br>      &quot;transformer&quot;: {<br>        &quot;use&quot;: [&quot;gemini&quot;]<br>      }<br>    }<br>  ],<br>  &quot;Router&quot;: {<br>    &quot;default&quot;: &quot;gemini,gemini-2.5-flash&quot;,<br>    &quot;background&quot;: &quot;gemini,gemini-2.5-flash&quot;,<br>    &quot;think&quot;: &quot;gemini,gemini-2.5-flash&quot;,<br>    &quot;longContext&quot;: &quot;gemini,gemini-2.5-flash&quot;,<br>    &quot;longContextThreshold&quot;: 60000<br>  }<br>}</pre><p>✔ Save<br>✔ Close</p><h3>🔥 STEP 5 — SET YOUR API KEY (WINDOWS METHOD)</h3><p>PowerShell (Run as Admin):</p><pre>[System.Environment]::SetEnvironmentVariable(&#39;GOOGLE_API_KEY&#39;, &#39;YOUR_KEY_HERE&#39;, &#39;User&#39;)</pre><p>Replace:</p><pre>YOUR_KEY_HERE</pre><p>With your actual Google API Key.</p><p>Example:</p><pre>[System.Environment]::SetEnvironmentVariable(&#39;GOOGLE_API_KEY&#39;, &#39;AIzaSyXXXXX...&#39;, &#39;User&#39;)</pre><h3>⚠️ IMPORTANT</h3><p>PowerShell close karen → new PowerShell open → check:</p><pre>echo $env:GOOGLE_API_KEY</pre><p>Agar value show ho jaye → Perfect! 🔥</p><h3>🔥 STEP 6 — VERIFY EVERYTHING</h3><p>Run:</p><pre>claude --version<br>ccr version<br>echo $env:GOOGLE_API_KEY</pre><p>Agar sab commands ka output aa jaye → ✔ Setup success</p><h3>🔥 STEP 7 — DAILY WORKFLOW</h3><h3>Terminal 1:</h3><pre>ccr start</pre><p>Wait until you see:</p><pre>✔ Service started successfully</pre><h3>Terminal 2:</h3><pre>cd your-project-folder<br>ccr code</pre><p>OR:</p><pre>eval &quot;$(ccr activate)&quot;<br>claude</pre><h3>🔥 VERIFICATION TEST</h3><p>Terminal:</p><pre>ccr code</pre><p>Then type:</p><pre>hi</pre><p>Agar Claude reply kare →<br>🎉 Congratulations! FREE CLAUDE CODE + GEMINI WORKING! 🚀💯</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8e62629893f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Large Language Models (LLMs) and Related Concepts Documentation]]></title>
            <link>https://medium.com/@tn0457584/large-language-models-llms-and-related-concepts-documentation-c7e4c78a4fc5?source=rss-585387329132------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7e4c78a4fc5</guid>
            <dc:creator><![CDATA[Tehmina]]></dc:creator>
            <pubDate>Sat, 24 May 2025 18:56:54 GMT</pubDate>
            <atom:updated>2025-05-24T19:18:52.861Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to this comprehensive guide on Large Language Models (LLMs) and related technologies, based on our detailed discussions. This documentation covers everything from the basics of LLMs to advanced topics like Transformers, attention mechanisms, and their applications in AI agents. Designed for easy understanding, it includes examples and practical insights.</p><h3>1. Introduction to Large Language Models (LLMs)</h3><h3>1.1 What is an LLM?</h3><ul><li><strong>Definition</strong>: A Large Language Model (LLM) is an AI model trained on vast text datasets to understand and generate human-like language. It excels at predicting the next token in a sequence.</li><li><strong>Key Characteristics</strong>:</li><li>Trained on millions to billions of parameters.</li><li>Based on the Transformer architecture (introduced in 2017 with “Attention is All You Need”).</li><li>Examples: GPT-4 (OpenAI), Llama 3 (Meta), Grok 3 (xAI).</li></ul><h3>1.2 How LLMs Work</h3><ul><li><strong>Core Principle</strong>: LLMs are autoregressive, predicting the next token based on previous tokens until an End of Sequence (EOS) token is reached.</li><li><strong>Process</strong>:</li></ul><ol><li>Tokenization of input text.</li><li>Conversion to embeddings (numerical vectors).</li><li>Use of attention to understand context.</li><li>Generation of output scores to select the next token.</li></ol><h3>2. Fundamentals of Natural Language Processing (NLP)</h3><h3>2.1 What is NLP?</h3><ul><li><strong>Overview</strong>: NLP is a field combining linguistics and machine learning to process and understand human language, focusing on context beyond individual words.</li><li><strong>Common Tasks</strong>:</li><li><strong>Sentence Classification</strong>: Sentiment analysis, spam detection, grammatical correctness.</li><li><strong>Word Classification</strong>: Identifying parts of speech (noun, verb) or named entities (person, location).</li><li><strong>Text Generation</strong>: Completing prompts, filling masked words.</li><li><strong>Answer Extraction</strong>: Answering questions from context.</li><li><strong>Translation/Summarization</strong>: Converting text or summarizing it.</li><li><strong>Speech and Vision</strong>: Transcribing audio, describing images.</li></ul><h3>2.2 Challenges in Language Processing</h3><ul><li>Computers struggle with human-like understanding.</li><li>Complexities include ambiguity, sarcasm, humor, and cultural context.</li><li>LLMs address these via massive training but still fall short of human-level comprehension.</li></ul><h3>3. Transformer Architecture</h3><h3>3.1 Overview</h3><ul><li><strong>Introduction</strong>: Introduced in 2017, Transformers replaced RNNs and LSTMs with parallel processing and attention mechanisms.</li><li><strong>Components</strong>:</li><li><strong>Encoder</strong>: Processes input sequence (e.g., BERT).</li><li><strong>Decoder</strong>: Generates output sequence (e.g., GPT).</li><li><strong>Seq2Seq</strong>: Combines both (e.g., T5, BART).</li></ul><h3>3.2 Attention Mechanism</h3><ul><li><strong>What is Attention?</strong>: Identifies the most relevant words for predicting the next token (e.g., “France” and “capital” in “The capital of France is…”).</li><li><strong>Self-Attention</strong>: Compares each token with others to capture context.</li><li><strong>Impact</strong>: Enables handling long sequences and improves performance.</li></ul><h3>3.3 Encoding and Decoding</h3><ul><li><strong>Encoding</strong>:</li><li>Text is tokenized and converted to embeddings.</li><li>Positional encoding adds sequence order information.</li><li><strong>Decoding</strong>:</li><li>Autoregressive process predicts tokens until EOS.</li><li>Uses masked attention to avoid future tokens.</li></ul><h3>4. Tokenization and Representation</h3><h3>4.1 What is Tokenization?</h3><ul><li><strong>Definition</strong>: Breaking text into smaller units (tokens) like words or sub-words.</li><li><strong>Types</strong>:</li><li><strong>Word-Level</strong>: Each word as a token (e.g., “interesting”).</li><li><strong>Sub-Word</strong>: Splits into “interest” and “ing” (e.g., Byte Pair Encoding, WordPiece).</li><li><strong>Purpose</strong>: Reduces vocabulary size and handles unseen words.</li></ul><h3>4.2 From Text to Numbers</h3><ul><li><strong>Process</strong>:</li></ul><ol><li>Tokens assigned unique IDs from a vocabulary.</li><li>IDs converted to embedding vectors.</li><li>Binary conversion happens at hardware level for storage/processing.</li></ol><ul><li><strong>Example</strong>:</li><li>“Main ghar ja” → [101, 205, 310] → Vectors like [0.1, 0.2, 0.3].</li></ul><h3>4.3 Special Tokens</h3><ul><li><strong>Role</strong>: Structure generation (e.g., start/end of sequence, messages).</li><li><strong>Examples</strong>:</li><li>GPT-4: &lt;|endoftext|&gt;.</li><li>Llama 3: &lt;|eot_id|&gt;.</li><li>SmolLM2: &lt;|im_end|&gt;.</li><li><strong>Diversity</strong>: Varies by provider; check tokenizer_config.json for details.</li></ul><h3>5. Training and Fine-Tuning LLMs</h3><h3>5.1 Training Process</h3><ul><li><strong>Pre-Training</strong>:</li><li>Unsupervised learning on massive text data.</li><li>Objective: Predict next token or masked words.</li><li><strong>Fine-Tuning</strong>:</li><li>Supervised learning for specific tasks (e.g., conversation, classification).</li><li><strong>Outcome</strong>: Models learn language structure and generalize to new data.</li></ul><h3>5.2 Hardware Options</h3><ul><li><strong>Local Run</strong>: Requires strong hardware (CPU/GPU).</li><li><strong>Cloud/API</strong>: Use Hugging Face Serverless Inference API or similar.</li></ul><h3>6. Decoding Strategies</h3><h3>6.1 Basic Decoding</h3><ul><li><strong>Greedy Decoding</strong>: Selects the token with the highest score at each step.</li></ul><h3>6.2 Advanced Decoding: Beam Search</h3><ul><li><strong>What is Beam Search?</strong></li><li>Explores multiple candidate sequences to find the best total score.</li><li>Keeps top-scoring “beams” (e.g., 4 beams).</li><li><strong>Parameters</strong>:</li><li><strong>Input</strong>: Starting sentence (e.g., “Conclusion: thanks a lot…”).</li><li><strong>Max New Tokens</strong>: 5.</li><li><strong>Num Beams</strong>: 4.</li><li><strong>Length Penalty</strong>: &gt;0 promotes longer sequences (e.g., 1).</li><li><strong>Num Return Sequences</strong>: 3 (≤ num_beams).</li><li><strong>Example Output</strong>:</li><li>“Conclusion: thanks a lot. That’s all for today. Goodbye!”</li><li>“Conclusion: thanks a lot. That’s all for today. See you!”</li></ul><h3>7. Applications in AI Agents</h3><h3>7.1 Role of LLMs</h3><ul><li><strong>Foundation</strong>: Provides language understanding and generation.</li><li><strong>Functions</strong>:</li><li>Interprets user instructions.</li><li>Maintains conversation context.</li><li>Plans tasks and selects tools.</li><li><strong>Significance</strong>: Acts as the “brain” of AI agents.</li></ul><h3>7.2 Learning for Agentic AI</h3><ul><li><strong>Required LLM Knowledge</strong>:</li><li>Basic: What LLMs are, how they predict tokens.</li><li>Intermediate: Training, attention, context length.</li><li>Advanced: Limitations, tool integration (optional).</li><li><strong>Additional Skills</strong>: Planning, reasoning, multi-agent systems.</li></ul><h3>8. Generative Models: GANs and Diffusion</h3><h3>8.1 Generative Adversarial Networks (GANs)</h3><ul><li><strong>Overview</strong>: Uses Generator and Discriminator to create data (e.g., images).</li><li><strong>Process</strong>: Generator makes fake data; Discriminator checks authenticity.</li><li><strong>Use Cases</strong>: Image generation, DeepFakes, style transfer.</li></ul><h3>8.2 Diffusion Models</h3><ul><li><strong>Overview</strong>: Adds noise to data, then reverses it to generate (e.g., Stable Diffusion).</li><li><strong>Process</strong>: Forward (add noise), Reverse (remove noise).</li><li><strong>Use Cases</strong>: High-quality image generation, text-to-image.</li></ul><h3>8.3 Comparison</h3><ul><li><strong>Quality</strong>: Diffusion &gt; GAN.</li><li><strong>Speed</strong>: GAN &gt; Diffusion.</li><li><strong>Popularity</strong>: Diffusion (e.g., Stable Diffusion) is more common in 2025.</li></ul><h3>9. Limitations and Future Directions</h3><h3>9.1 Limitations</h3><ul><li><strong>Hallucinations</strong>: Generates incorrect info confidently.</li><li><strong>Lack of Understanding</strong>: Relies on patterns, not true comprehension.</li><li><strong>Bias</strong>: Reflects training data biases.</li><li><strong>Context Windows</strong>: Limited but improving.</li><li><strong>Resources</strong>: High computational needs.</li></ul><h3>9.2 Future</h3><ul><li>Longer context handling.</li><li>Addressing ethical concerns.</li><li>Integration with multimodal data (text, images, etc.).</li></ul><p>This documentation covers all aspects discussed, from LLM basics to advanced applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7e4c78a4fc5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>