·5 मिनट का पठन

GetVibe के साथ Claude Code का उपयोग करें: सेटअप, मॉडल और लागत

GetVibe के लिए Claude Code को उसके Anthropic Messages endpoint, environment-आधारित authentication, समर्थित model slots और मापी गई token लागतों का उपयोग करके configure करें।

GetVibe के साथ Claude Code का उपयोग करें: सेटअप, मॉडल और लागत

Claude Code OpenAI chat endpoint का उपयोग नहीं करता। यह Anthropic Messages requests को /v1/messages पर भेजता है, इसलिए इसका base URL और credentials Claude Code की Anthropic settings का उपयोग करना चाहिए। GetVibe specific catalog models के लिए Messages format को support करता है; GPT-6 Luna, GPT-6 Sol और GPT-6.1 Sol इस CLI path के साथ compatible नहीं हैं। यह guide GetVibe के Claude Code setup और मौजूदा custom endpoint reference पर आधारित है।

Claude Code इंस्टॉल और configure करें

CLI को Node.js 22 या बाद के version के साथ install करें:

npm install -g @anthropic-ai/claude-code
mkdir -p ~/.claude

~/.claude/settings.json को edit करें और नीचे दिए गए exact fields का उपयोग करें। Base URL में जानबूझकर /v1 नहीं है; Claude Code इसमें /v1/messages जोड़ता है। खाली ANTHROPIC_API_KEY महत्वपूर्ण है: इसके बिना Claude Code custom endpoint के बजाय अपने सामान्य direct Anthropic authentication को प्राथमिकता दे सकता है।

{
  "apiKeyHelper": "echo $GETVIBE_API_KEY",
  "env": {
    "ANTHROPIC_BASE_URL": "https://getvibeapi.com",
    "ANTHROPIC_API_KEY": "",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-5.5",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-5.5",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-4.5"
  }
}

Claude Code लॉन्च करने से पहले shell में key सेट करें: export GETVIBE_API_KEY='your-dashboard-key'। यही environment variable GetVibe की integration files में उपयोग होता है। Settings file इस variable को reference करती है; इसमें actual key नहीं होनी चाहिए। इस profile में direct Anthropic credential डालने से बचें, क्योंकि credential precedence custom endpoint को bypass कर सकती है।

Write access देने से पहले endpoint verify करें

एक disposable repository में claude लॉन्च करें और /status चलाएँ। Anthropic base URL https://getvibeapi.com होना चाहिए। पहले read-only प्रश्न पूछें, फिर एक छोटा edit करने को कहें और diff की जाँच करें। अगर request अभी भी सीधे Anthropic को जा रही है, तो जाँचें कि ANTHROPIC_API_KEY एक empty string है और helper GETVIBE_API_KEY को पढ़ सकता है। अगर आपको doubled /v1/v1/messages दिखाई दे, तो base URL से /v1 हटा दें।

Messages के ज़रिए कौन से मॉडल काम करते हैं?

GetVibe की मौजूदा integration guide में Claude Opus 5.5, Claude Sonnet 5, DeepSeek V4.1 Flash, Gemini 3.8 Flash, GLM-5.3 और Kimi K3 को Anthropic Messages route पर supported examples के रूप में सूचीबद्ध किया गया है। किसी slot को बदलने से पहले current model catalogue जाँचें; protocol support model-specific होता है। GPT-6 Luna, GPT-6 Sol और GPT-6.1 Sol Claude Code के Messages endpoint के ज़रिए काम नहीं करते। इसके बजाय उन Responses-compatible models के लिए Codex CLI का उपयोग करें। 3 अक्टूबर 2026 को जाँचा गया public catalog snapshot Sonnet 5.5 की कीमत $0.168 इनपुट · $0.84 आउटपुट प्रति 10 लाख टोकन प्रति million tokens दिखाता है; प्रदर्शित कीमत live रहती है।

Model slots को सोच-समझकर assign करें

Claude Code Opus, Sonnet और Haiku slots को support करता है। GetVibe का settings example इन slots के लिए current IDs चुनता है और subagent work के लिए CLAUDE_CODE_SUBAGENT_MODEL का उपयोग करता है। एक समय में एक ही slot बदलें। CLI restart करने के बाद /status से पूछें कि कौन सा model active है और एक harmless test prompt चलाएँ। यह मानकर न चलें कि कोई OpenAI model Claude slot में होना चाहिए: protocol और model-family handling अलग होते हैं।

लागत के लिए, एक ही task, repository snapshot, permissions और output request पर Sonnet और Opus की तुलना करें। सभी agent turns और repair steps record करें। Live Sonnet 5.5 price $0.168 इनपुट · $0.84 आउटपुट प्रति 10 लाख टोकन प्रति million input और output tokens दिखाई जाती है। Catalog snapshot की date 3 अक्टूबर 2026 है; किसी नए session का budget बनाते समय linked model page का उपयोग करें।

Long sessions को नियंत्रण में रखें

Agent sessions बार-बार context generate करते हैं। Instructions को concise रखें, build artifacts और vendored directories को exclude करें, और जब focused file list पर्याप्त हो तो agent से बड़ी files को दोबारा पढ़ने के लिए न कहें। Claude requests cache breakpoints का उपयोग कर सकती हैं; GetVibe caching behavior को caching docs में document करता है। Prefix को stable रखें और usage fields जाँचें, ताकि पता चल सके कि cached input वास्तव में report हो रहा है या नहीं। जब तक session में cache reads दिखाई न दें, lower theoretical cache rate को savings न मानें।

एक स्पष्ट task boundary तय करें, normal permission prompts का उपयोग करें और commands तथा diffs की समीक्षा करें। कम token price किसी unsafe shell command को safe नहीं बनाती। Repeatable benchmark comparisons के लिए हर model के लिए समान permission mode और tool access का उपयोग करें।

सामान्य setup failures

  • 401: GETVIBE_API_KEY, helper output और empty ANTHROPIC_API_KEY verify करें।
  • Traffic bypasses GetVibe: अपने shell profile में credentials जाँचें और /status का उपयोग करके base URL verify करें।
  • Model unavailable: exact current ID copy करें और उसके model page पर Messages compatibility verify करें।
  • Bad URL: root domain को /v1 के बिना सेट करें; Claude Code route suffix जोड़ता है।

Cost baseline बनाएँ

Rollout से पहले एक short task और एक realistic multi-file change चलाएँ। Model ID, input और output usage, यदि report हों तो cache reads, elapsed time और tests pass होते हैं या नहीं, यह record करें। Key को secret manager में रखें और एक internal alert सेट करें। इन observations से team को actual cost-per-change baseline मिलता है, बजाय यह मान लेने के कि हर coding session समान context consume करता है। Current price Sonnet 5.5 model page पर देखी जा सकती है।

Model slots को explicit रखें

Claude Code में Opus, Sonnet और Haiku slots होते हैं। केवल उन्हीं slots को set करें जिनका उपयोग आपकी team करने की योजना बना रही है, और settings बदलने के बाद /status से active choice confirm करें। Claude slot name protocol adapter नहीं होता: किसी OpenAI-only model को Sonnet slot में assign करने से वह Messages-compatible नहीं बन जाएगा।

Real session में caching measure करें

समान stable instructions के साथ एक short और एक multi-file task चलाएँ। बाद के turns पर cache-read usage की तुलना करें और total session cost record करें। Repeated trials के बीच permissions, repository snapshot और model slot को unchanged रखें; अन्यथा comparison यह नहीं बता पाएगा कि cost difference caching, extra tool calls या किसी अलग task के कारण आया।

Edits और credentials को सुरक्षित रखें

पहले write-enabled task के लिए disposable worktree का उपयोग करें, commands और diffs की समीक्षा करें और credentials को shell-managed secret में रखें। अगर कोई key terminal history या shared settings file में पहुँच जाए, तो उसे rotate करें। ये सरल सीमाएँ developers को agent explore करने देती हैं, बिना हर prompt को production data या unreviewed working tree तक access दिए।

Claude CodeGetVibe APIOpenAI संगत APIAI मॉडल की कीमत

GetVibe API को मुफ़्त में आज़माएँ

एक OpenAI-संगत API के ज़रिए GPT, Claude, Gemini और अन्य मॉडल। कार्ड या क्रिप्टो से USD में भुगतान करें।

संबंधित लेख

GetVibe के साथ Claude Code का उपयोग करें: सेटअप, मॉडल और लागत | GetVibe API