<?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 Misbah Syed on Medium]]></title>
        <description><![CDATA[Stories by Misbah Syed on Medium]]></description>
        <link>https://medium.com/@MisbahSy?source=rss-11311032b23a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6psvfzvHuOsbsI9Zzce_fQ.png</url>
            <title>Stories by Misbah Syed on Medium</title>
            <link>https://medium.com/@MisbahSy?source=rss-11311032b23a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 02:40:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@MisbahSy/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[How to set up OpenAI Codex with LiteLLM]]></title>
            <link>https://medium.com/@MisbahSy/how-to-set-up-openai-codex-with-litellm-8a617904917e?source=rss-11311032b23a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a617904917e</guid>
            <category><![CDATA[litellm]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[gateway]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Misbah Syed]]></dc:creator>
            <pubDate>Wed, 09 Sep 2026 17:21:03 GMT</pubDate>
            <atom:updated>2026-09-09T17:41:39.226Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EyQ2oQ9_x_xaSRkjyP4uKg.png" /></figure><p>This guide connects OpenAI Codex to a LiteLLM proxy, one you run yourself or one your team already hosts. Codex reads one base URL out of a config file, so pointing it at LiteLLM gives you:</p><ul><li>Any model LiteLLM can reach, from the same Codex CLI and desktop app</li><li>A log line and a cost for every request, in one place</li><li>Per-developer keys with their own budgets and their own model access</li><li>One provider key on the server instead of a copy on every machine</li></ul><p>The five-minute walkthrough this guide is written from:</p><p><a href="https://youtu.be/avKQz7VqJZE">The Complete step-by-step tutorial</a></p><p>The steps below are the ones in the video, so you can move between the two.</p><h3>Requirements</h3><ul><li>Docker, for the setting up LiteLLM gateway. Not needed if you are pointing at a gateway already hosted.</li><li>Node, for the Codex CLI</li><li>One provider key. One is enough to start</li></ul><p>Everything below runs on the open-source image, ghcr.io/berriai/litellm:main-stable. The admin UI, virtual keys and spend tracking come from having a database attached, which the compose file does.</p><p>Versions used here: litellm 1.99.0, current @openai/codex.</p><h3>Let’s go!</h3><p>If your team already hosts a LiteLLM gateway, skip steps 2 and 3 below.</p><h3>1. Install OpenAI Codex</h3><p>Install the Codex CLI globally:</p><pre>npm install -g @openai/codex</pre><h3>2. Configure LiteLLM for model routing</h3><p>Make a directory for the LiteLLM proxy and put config.yaml in it. This file is the model list: the names your clients ask for, and where each one goes.</p><h4>config.yaml</h4><pre>model_list:<br>  # `codex -m &lt;id&gt;` works with any of them.<br>  - model_name: gpt-5.6-terra<br>    litellm_params:<br>      model: openai/gpt-5.6-terra<br>      api_key: os.environ/OPENAI_API_KEY<br>  - model_name: gpt-5.6-luna<br>    litellm_params:<br>      model: openai/gpt-5.6-luna<br>      api_key: os.environ/OPENAI_API_KEY<br>  - model_name: gpt-5.6-sol<br>    litellm_params:<br>      model: openai/gpt-5.6-sol<br>      api_key: os.environ/OPENAI_API_KEY<br><br>  # Anything from another provider goes in the same list.<br>  - model_name: claude-sonnet-5<br>    litellm_params:<br>      model: anthropic/claude-sonnet-5<br>      api_key: os.environ/ANTHROPIC_API_KEY<br><br>  # Catch-all, so `codex -m &lt;anything&gt;` reaches OpenAI without editing<br>  # this file. Delete this entry to restrict a fleet to the list above.<br>  - model_name: &quot;*&quot;<br>    litellm_params:<br>      model: openai/*<br>      api_key: os.environ/OPENAI_API_KEY<br><br>litellm_settings:<br>  drop_params: true<br><br>general_settings:<br>  master_key: os.environ/LITELLM_MASTER_KEY<br>  # Coding turns stream for a long time. Do not cut them off.<br>  request_timeout: 600</pre><p>master_key<strong>.</strong> This is the key to access the proxy.</p><h3>3. Start the LiteLLM proxy</h3><p>We’ll start the LiteLLM gateway along with a postgres database, so that we can access the dashboard UI for the gateway..</p><h4>docker-compose.yml</h4><pre>name: litellm-coding-agents<br><br>services:<br>  litellm:<br>    image: ghcr.io/berriai/litellm:main-stable<br>    restart: unless-stopped<br>    command: [&quot;--config&quot;, &quot;/app/config.yaml&quot;, &quot;--port&quot;, &quot;4000&quot;]<br>    ports:<br>      - &quot;4000:4000&quot;<br>    volumes:<br>      - ./config.yaml:/app/config.yaml:ro<br>    env_file:<br>      - .env<br>    environment:<br>      DATABASE_URL: postgresql://litellm:litellm@postgres:5432/litellm<br>      STORE_MODEL_IN_DB: &quot;True&quot;<br>    depends_on:<br>      postgres:<br>        condition: service_healthy<br>    healthcheck:<br>      test: [&quot;CMD-SHELL&quot;, &quot;python -c \&quot;import urllib.request,sys; sys.exit(0 if urllib.request.urlopen(&#39;http://localhost:4000/health/liveliness&#39;).status==200 else 1)\&quot;&quot;]<br>      interval: 10s<br>      timeout: 5s<br>      retries: 12<br>      start_period: 30s<br><br>  postgres:<br>    image: postgres:16-alpine<br>    restart: unless-stopped<br>    # Deliberately not published to the host. Nothing outside this<br>    # network needs it, and 5432 is usually already taken.<br>    environment:<br>      POSTGRES_USER: litellm<br>      POSTGRES_PASSWORD: litellm<br>      POSTGRES_DB: litellm<br>    volumes:<br>      - litellm-pgdata:/var/lib/postgresql/data<br>    healthcheck:<br>      test: [&quot;CMD-SHELL&quot;, &quot;pg_isready -U litellm -d litellm&quot;]<br>      interval: 5s<br>      timeout: 5s<br>      retries: 20<br><br>volumes:<br>  name: litellm-pgdata<br></pre><p>Provider keys go in .env next to the compose file:</p><pre>OPENAI_API_KEY=... ANTHROPIC_API_KEY=... LITELLM_MASTER_KEY=sk-1234</pre><p>sk-1234 is the placeholder master key used in the LiteLLM docs. Replace it with a real secret key.</p><h3>Bring it up</h3><p>Start the proxy and its database:</p><pre>docker compose up -d</pre><p>First boot runs the database migrations and takes about eighty seconds. Every boot after that is about fifteen (depending on the machine spec).</p><p>Check that it is alive:</p><pre>curl -s http://localhost:4000/health/liveliness</pre><p>And that it is serving the model list:</p><pre>curl -s http://localhost:4000/v1/models -H &quot;Authorization: Bearer sk-1234&quot; | head -c 400</pre><p>A quick tip: If something else is running on port 4000, you can check using this command before running docker compose. You could either stop that process or run LiteLLM gateway on a different port but will have to adjust rest of the tutorial accordingly.</p><pre>lsof -nP -iTCP:4000 -sTCP:LISTEN</pre><p>The proxy is up. Now we will look at the Codex side.</p><h3>4. Configure Codex to use LiteLLM</h3><h3>~/.codex/config.toml</h3><p>It’s a good idea to back up the existing codex config file first.</p><pre>cp ~/.codex/config.toml ~/.codex/config.toml.bak 2&gt;/dev/null || true</pre><p>Then edit the codex config file as below:</p><pre>model = &quot;gpt-5.6-terra&quot; model_provider = &quot;litellm&quot; model_reasoning_effort = &quot;medium&quot; [model_providers.litellm] name = &quot;LiteLLM Gateway&quot; base_url = &quot;http://localhost:4000/v1&quot; # More on setting up LITELLM_API_KEY towards the end env_key = &quot;LITELLM_API_KEY&quot; # Codex talks the Responses API. wire_api = &quot;responses&quot; # A coding turn can stream for long time, hence the setting below stream_idle_timeout_ms = 7200000 stream_max_retries = 5 request_max_retries = 4 # Codex cli complains if not in a trusted folder [projects.&quot;/path/to/your/project&quot;] trust_level = &quot;trusted&quot;</pre><p>model_provider = &quot;litellm&quot;<strong>.</strong> Has to match the [model_providers.&lt;name&gt;] table below it. Any name works, as long as they both match.</p><p>wire_api = &quot;responses&quot;<strong>.</strong> Codex uses the Responses API, whereas the default for a custom provider is chat completions.</p><h3>5. Run Codex</h3><pre>codex exec &quot;reply with the word CONNECTED and nothing else&quot;</pre><p>Codex is now runs against your proxy, on your provider key, with your model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/0*OtqNeRvYPuUWhXWg.png" /></figure><p>Or you can start a codex session in the terminal with:</p><p>Open http://localhost:4000/ui, sign in with the master key, and the request appears in the Logs tab.</p><h3>6. Use the Codex desktop app</h3><p>The Codex desktop app reads the same ~/.codex/config.toml. Nothing new to write.</p><p>But it will not see your environment variable. macOS hands apps launched from Finder or the Dock the GUI login session’s environment, not your shell’s. You can run this command to set env variable for the login session:</p><pre>launchctl setenv LITELLM_API_KEY &quot;sk-1234&quot;</pre><p>Then fully quit and reopen the codex app. That holds until you log out. Make it a LaunchAgent if you want it permanent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s3QrCFby72P2YvYp.png" /></figure><h3>Advanced options</h3><h4>Manage usage with virtual keys</h4><p>Clients get a virtual key, issued from the Virtual Keys page in the admin UI at <a href="http://localhost:4000/ui">http://localhost:4000/ui</a>, with its own budget and its own list of allowed models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x7azOV4z3KKl3d-M.png" /></figure><p>Issue one per person, per machine or per project, then set LITELLM_API_KEY to that key instead:</p><pre>export LITELLM_API_KEY=&quot;&quot;</pre><p>Three things follow from that. Spend in the Logs tab is broken down by key, so you can see which project is costing what. A budget on the key stops it rather than surprising you at the end of the month. And if a key leaks, you can revoke that one key.</p><h3>Using different models</h3><p>Any public name in the model list works:</p><pre>codex -m gpt-5.6-luna</pre><p>Profiles are saved model and reasoning-effort pairs, that can get you started with quickly.</p><p>In your ~/.codex/config.toml add:</p><pre># Optional profiles # Saved model plus reasoning-effort pairs. `codex --profile deep`. [profiles.fast] model = &quot;gpt-5.6-luna&quot; model_reasoning_effort = &quot;low&quot; [profiles.deep] model = &quot;gpt-5.6-sol&quot; model_reasoning_effort = &quot;high&quot;</pre><p>Now you can run a codex session with a specific profile.</p><pre>codex --profile deep</pre><h3>Additional resources</h3><ul><li>LiteLLM docs: <a href="https://docs.litellm.ai/">https://docs.litellm.ai</a></li><li>Codex tutorial page: <a href="https://docs.litellm.ai/docs/tutorials/openai%5C_codex">https://docs.litellm.ai/docs/tutorials/openai\_codex</a></li><li>LiteLLM on GitHub: <a href="https://github.com/BerriAI/litellm">https://github.com/BerriAI/litellm</a></li><li>Video walkthrough: <a href="https://youtu.be/avKQz7VqJZE">Watch it on YouTube</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a617904917e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[9 Skills to Join the League of Extraordinary Gentlemen (in 2018)]]></title>
            <link>https://medium.com/@MisbahSy/9-skills-to-join-the-league-of-extraordinary-gentlemen-in-2018-2061a3b4f125?source=rss-11311032b23a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2061a3b4f125</guid>
            <category><![CDATA[goals]]></category>
            <category><![CDATA[extraordinary]]></category>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[2018]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Misbah Syed]]></dc:creator>
            <pubDate>Sat, 03 Feb 2018 15:48:36 GMT</pubDate>
            <atom:updated>2018-02-03T15:48:36.890Z</atom:updated>
            <content:encoded><![CDATA[<p>These series of articles focuses on practical methods of increasing your skillset each month, and hence increasing your net worth. Many of the 20’s some, are looking to gain additional skills and are extremely capable of learning, but don’t have a set methodology of doing so. Or they are busy with their day jobs, and can’t leave to acquire these skills. The goal of this series is to go through these learning experiences and provide detailed how-to’s on achieving great results. Unnecessary jargon or details will be avoided at all costs.</p><p><strong>Inspiration<br></strong>It’s 2018! Working with one skill for whole life and retiring doesn’t work anymore. A degree might give you precedence, but no guarantee. There is a threat of loosing job to other countries or to robots. To combat this, one should focus on gaining skills that makes them a linchpin.</p><p>This will be a journey to curate as much useful information as possible. Your suggestions are extremely helpful.</p><p>Below is the list of skills:</p><ol><li><strong>Coding</strong></li></ol><p>Of course coding is on the list. From kids to adults, every person should strive to learn programming skills. This opens up tons of opportunities, starting from silicon valley to all parts of the world. Watch these famous people emphasize coding skills:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FnKIu9yen5nc&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DnKIu9yen5nc&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FnKIu9yen5nc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3550d327387e0929f6bcae4b7fa98e7f/href">https://medium.com/media/3550d327387e0929f6bcae4b7fa98e7f/href</a></iframe><p>Python is the recommended language to learn in 2018 for it’s use in data science, machine learning, software development, and web development.</p><p><strong>2. Data Science and Machine Learning</strong></p><p>Data Science essentially is the <em>task of deriving insights from data towards actionable decision-making. </em>With recent breakthroughs in Deep Learning research, there is a lot of discussion in media around Data Science and Machine Learning. There is high demand and inadequate supply for qualified data scientist and machine learning engineers in all industries.</p><p>Data Science encompass many fields. Below is a good visualization to understand the breadth of this field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*CDiSJaFgN5jNkd1e_Ix0mQ.png" /></figure><p><strong>3. Sales</strong></p><p>Sales is an ability to persuade a person to take action or to exchange goods, services, or property for money. Enough value should be sensed by the buyer so as to make a decision to buy. Naturally, many people are introverts and dislike talking to strangers. It is this disapproval, which even makes them hate sales people.</p><p>If one can learn this skill, it is a very powerful tool. One example can be seen from Jordan Belfort, who was a wall street millionaire by 25, and now teaches the Straight Line Persuasion course. Check out this video of him teaching the course (highly recommended).</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F8_-uTOscFKM%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D8_-uTOscFKM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F8_-uTOscFKM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b466d071c9a971296194ff32ca17cb9a/href">https://medium.com/media/b466d071c9a971296194ff32ca17cb9a/href</a></iframe><p><strong>4. Communication and Presentation</strong></p><p>Strong communicator and presenter always have higher chances of being noted. Robert Greene gave several examples in his book, 48 laws of Power, on the topic of impressing influential people by effective communication and presentation. This could mean to fake it until you make it. Robert Greene says, “A bold act requires a high degree of confidence. People who are the targets of an audacious act, or who witness it, cannot help but believe that such confidence is real and justified. They respond instinctively by backing up, by getting out of the way, or by following the confident person. A bold act can put people on their heels and eliminate obstacles. In this way, it creates its own favorable circumstances. ”</p><p><strong>5. Internet Marketing</strong></p><p>If you are reading this, you obviously know about internet and the power of marketing online. Billions of dollars are invested by companies to market their products to the right people. Internet is the best source of marketing to the right audience at the right time. Emails, social media, blogs, sponsored ads and SEO are some of the tools used to reach out to the potential customers. Learning this skill is invaluable.</p><p><strong>6. Networking</strong></p><p>Networking is one of the most underrated tool for millennials. One needs to understand that having thousands of friends on Facebook doesn’t necessarily translate to having a powerful network. Although, it could be harnessed by taking proper steps.</p><p>Networking is a powerful tool leveraged by influential people to achieve success in fields they aren’t influential in. Only a few people can have influence in all fields of life. Others have to depend on their network to achieve this.</p><p><strong>7. Influencing Audiences</strong></p><p>Influencing audiences have become easier with the widespread use of social media. Nevertheless, people are mostly influenced by genuine content. Learning to be an influencer is an important skill needed for the years to come. Social media and influencers are used to gain support by politicians, businesses, organizations, sports personalities and rising internet stars. More and more money will be poured into influencer marketing each year, as more users are added to social networks.</p><p><strong>8. Branding</strong></p><p>In principles of Marketing (Philip Kotler/Gary Amstrong) a brand is defined as a “name, term, sign symbol (or a combination of these) that identifies the maker or seller of the product.” And “Branding is endowing products and services with the power of a brand” (Kotler &amp; Keller, 2015). The six step model proposed by Kotler for branding involves:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/0*oC9B4wAqdD-xfLZJ.png" /></figure><p>Brand plays significant role in winning loyalty of consumers which starts from brand purpose. People are willing to pay higher dollars for a reputable brand. Learning branding can help a company stand out from competition.</p><p><strong>9. Blockchain</strong></p><p>By now, everyone and their grandma are talking about investing in Bitcoin. Blockchain is the underlying technology that powers Bitcoin. Blockchain and decentralized applications will be central theme in many new industries. Essentially, reducing the dependency of a single platform owner and harnessing combined computing power to authenticate transactions.</p><p>Although, investing in currencies such as Bitcoin and Ethereum is the current hot topic of discussion. In future, more focus will shift towards the underlying technology and building on that infrastructure.</p><p><strong>Bonus: Angel Investing</strong></p><p>This is an odd skill to the above list, as it needs capital to invest. But the reason for inclusion is that, recently I came across an amazing book “Angel: How to Invest in Technology Startups — Timeless Advice from an Angel Investor Who Turned $100,000 into $100,000,000” by Jason Calacanis. This book provides practical steps on how to be an angel investor.</p><p>If someone can make a few good bets on successful companies, their investment is returned multiple folds. Although, it sounds easy, it isn’t that simple. It requires in-depth understanding of founders and the product their company provides. This is another skill that could add you to the league of extraordinary gentlemen.</p><p><strong>Summary</strong></p><p>These are some of the top skills that can be learnt, given proper instructions, in adequate amount of time. They have high payback and doesn’t require a degree. To excel in 2018, every person should gain multiple skills utilize them in variety of industries.</p><p>What other skills do you think deserves recognition in this list?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2061a3b4f125" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>