Home / Companies / Firecrawl / Blog / Post Details
Content Deep Dive

How to Use GPT, Gemini, and Grok Models Inside Claude Code with CLI Proxy

Blog post from Firecrawl

Post Details
Company
Date Published
Author
Richard Oliver Bray
Word Count
2,254
Company Posts That Month
3
Language
English
Hacker News Points
-
Post removed?
No
Summary

CLI Proxy is an open-source local proxy server designed to enable the use of different AI models, such as GPT, Gemini, or Grok, within Claude Code, a popular AI coding tool. By redirecting requests through a local server at localhost:8317 and using OAuth authentication, CLI Proxy leverages existing subscriptions rather than incurring additional API costs. It facilitates model swapping by translating requests and responses at the API layer, allowing users to map different Claude Code tiers (like Opus, Sonnet, Haiku) to models from various providers. The proxy supports multiple account tokens per provider, rotating them to optimize usage limits and ensuring that Claude Code's functionalities, such as skills and subagents, continue to operate seamlessly. While technically CLI Proxy allows using Claude models in other CLIs, which may violate terms of service, using non-Claude models within Claude Code itself is permissible. The tool is compatible across different operating systems and offers various installation methods, including Homebrew for macOS, with configurations managed through environment variables.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
AI Coding Assistant 1 276 77 47 -83%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.