<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Haider Hanif</title>
    <description>The latest articles on DEV Community by Haider Hanif (@haider_hanif_8747b2dc103f).</description>
    <link>https://dev.to/haider_hanif_8747b2dc103f</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4104992%2F61b742ab-929b-4dd4-b634-cd5dc94b0820.png</url>
      <title>DEV Community: Haider Hanif</title>
      <link>https://dev.to/haider_hanif_8747b2dc103f</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/haider_hanif_8747b2dc103f"/>
    <language>en</language>
    <item>
      <title>How to Set Up Your OneHop API Key in Cursor and Cline</title>
      <dc:creator>Haider Hanif</dc:creator>
      <pubDate>Tue, 01 Sep 2026 19:32:16 +0000</pubDate>
      <link>https://dev.to/haider_hanif_8747b2dc103f/how-to-set-up-your-onehop-api-key-in-cursor-and-cline-535g</link>
      <guid>https://dev.to/haider_hanif_8747b2dc103f/how-to-set-up-your-onehop-api-key-in-cursor-and-cline-535g</guid>
      <description>&lt;h1&gt;
  
  
  How to Set Up Your OneHop API Key in Cursor and Cline: A Step-by-Step Guide
&lt;/h1&gt;

&lt;p&gt;If you're using modern AI development tools like &lt;strong&gt;Cursor&lt;/strong&gt;, &lt;strong&gt;Cline&lt;/strong&gt;, &lt;strong&gt;Claude Code&lt;/strong&gt;, or &lt;strong&gt;Cherry Studio&lt;/strong&gt;, managing multiple API keys across different providers (OpenAI, Anthropic, DeepSeek, Google, etc.) can quickly become messy and expensive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OneHop&lt;/strong&gt; acts as a unified AI Gateway, letting you access hundreds of AI models through a single API key and an OpenAI-compatible Base URL (&lt;code&gt;https://api.onehop.ai/v1&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;In this short guide, we’ll walk through how to generate your OneHop API key and configure it in &lt;strong&gt;Cursor&lt;/strong&gt; and &lt;strong&gt;Cline (VS Code extension)&lt;/strong&gt; in under 3 minutes.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Get Your OneHop API Key
&lt;/h2&gt;

&lt;p&gt;Before configuring your tools, you need to retrieve your credentials from OneHop:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Log in to your &lt;a href="https://onehop.ai/" rel="noopener noreferrer"&gt;OneHop Dashboard&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Navigate to the &lt;strong&gt;API Keys&lt;/strong&gt; section.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Create New Key&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Copy your generated key (it usually starts with &lt;code&gt;oh_...&lt;/code&gt;). Save it securely, as you won't be able to see it again.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  2. Setting Up OneHop in Cursor
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Cursor&lt;/strong&gt; is an AI-first code editor built on VS Code. Because OneHop is fully OpenAI API-compatible, setting it up in Cursor is simple.&lt;/p&gt;

&lt;h3&gt;
  
  
  Steps:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Cursor&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;Settings&lt;/strong&gt; (Click the gear icon in the top right or press &lt;code&gt;Ctrl + ,&lt;/code&gt; / &lt;code&gt;Cmd + ,&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Cursor Settings&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Models&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Scroll down to the &lt;strong&gt;OpenAI API Key&lt;/strong&gt; section:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Override OpenAI Base URL:&lt;/strong&gt; Toggle this on and set it to:
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; [https://api.onehop.ai/v1](https://api.onehop.ai/v1)
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;OpenAI API Key:&lt;/strong&gt; Paste your OneHop key (&lt;code&gt;oh_...&lt;/code&gt;).

&lt;ol&gt;
&lt;li&gt;Under &lt;strong&gt;Model Names&lt;/strong&gt;, enable or add the models you wish to route through OneHop, such as:&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;openai/gpt-5.6-sol&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;anthropic/claude-opus-5&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;anthropic/claude-sonnet-5&lt;/code&gt;

&lt;ol&gt;
&lt;li&gt;Save your settings and run a test query in the Cursor AI Chat sidebar to confirm everything is working!&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  3. Setting Up OneHop in Cline (VS Code Extension)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Cline&lt;/strong&gt; is an autonomous coding assistant in VS Code that supports custom OpenAI-compatible endpoints.&lt;/p&gt;

&lt;h3&gt;
  
  
  Steps:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;VS Code&lt;/strong&gt; and open the &lt;strong&gt;Cline&lt;/strong&gt; panel.&lt;/li&gt;
&lt;li&gt;Click the &lt;strong&gt;Settings Gear&lt;/strong&gt; icon inside the Cline extension panel.&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;API Provider&lt;/strong&gt; dropdown, select &lt;strong&gt;OpenAI Compatible&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Fill in the following details:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Base URL:&lt;/strong&gt; &lt;code&gt;https://api.onehop.ai/v1&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;API Key:&lt;/strong&gt; Paste your OneHop key (&lt;code&gt;oh_...&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model ID:&lt;/strong&gt; Enter the model string you want to use (e.g., &lt;code&gt;openai/gpt-5.6-sol&lt;/code&gt;, &lt;code&gt;anthropic/claude-opus-5&lt;/code&gt;, or &lt;code&gt;anthropic/claude-sonnet-5&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Done&lt;/strong&gt; / Save.&lt;/li&gt;
&lt;li&gt;Submit a quick prompt in Cline to verify that responses are streaming correctly.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Using &lt;strong&gt;OneHop&lt;/strong&gt; as your central AI gateway simplifies model management and keeps your workflow clean across all your favorite IDEs and coding agents—whether you're using Cursor, Cline, Claude Code, Cherry Studio, or Hermes.&lt;/p&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>software</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
