[{"data":1,"prerenderedAt":509},["ShallowReactive",2],{"navigation":3,"/docs/usage/claude-code":61,"/docs/usage/claude-code-surround":505},[4,50,53],{"title":5,"_path":6,"children":7,"icon":49},"Docs","/docs",[8,21,36],{"title":9,"_path":10,"children":11,"icon":20},"شروع به کار","/docs/getting-started",[12,14,17],{"title":13,"_path":10},"مقدمه",{"title":15,"_path":16},"نصب","/docs/getting-started/installation",{"title":18,"_path":19},"قیمت‌گذاری","/docs/getting-started/pricing","i-lucide-square-play",{"title":22,"_path":23,"children":24,"icon":35},"تخصصی","/docs/studio",[25,27,31],{"title":13,"_path":23,"icon":26},"i-lucide-sparkles",{"title":28,"_path":29,"icon":30},"نظام مهندسی","/docs/studio/architecture","i-lucide-landmark",{"title":32,"_path":33,"icon":34},"تحلیل‌گر پتروشیمی","/docs/studio/petrochemical","i-lucide-bar-chart-3","i-lucide-brain",{"title":37,"_path":38,"children":39,"icon":48},"موارد استفاده","/docs/usage",[40,44],{"title":41,"_path":42,"icon":43},"Cursor","/docs/usage/cursor","i-lucide-code",{"title":45,"_path":46,"icon":47},"Claude Code","/docs/usage/claude-code","i-lucide-terminal","i-lucide-boxes","i-heroicons-book-open",{"title":18,"_path":51,"icon":52},"/pricing","i-heroicons-credit-card",{"title":54,"_path":55,"children":56,"icon":60},"وبلاگ","/blog",[57],{"title":58,"_path":59},"چطور از API های هوش مصنوعی استفاده کنیم","/blog/openai-compatible-api","i-heroicons-newspaper",{"_path":46,"_dir":62,"_draft":63,"_partial":63,"_locale":64,"title":45,"description":65,"navigation":66,"body":67,"_type":499,"_id":500,"_source":501,"_file":502,"_stem":503,"_extension":504},"usage",false,"","نحوه استفاده از API اهور در Claude Code",{"icon":47},{"type":68,"children":69,"toc":488},"root",[70,79,85,92,97,112,118,123,162,168,173,180,185,258,263,345,351,356,381,386,392,397,411,416,422,440,446,477,482],{"type":71,"tag":72,"props":73,"children":75},"element","h1",{"id":74},"راهنمای-استفاده-از-اهور-در-claude-code",[76],{"type":77,"value":78},"text","راهنمای استفاده از اهور در Claude Code",{"type":71,"tag":80,"props":81,"children":82},"p",{},[83],{"type":77,"value":84},"این راهنما به شما کمک می‌کند تا از API اهور در Claude Code استفاده کنید. Claude Code یک ابزار خط فرمان از Anthropic است که به شما امکان می‌دهد با استفاده از هوش مصنوعی کدنویسی کنید.",{"type":71,"tag":86,"props":87,"children":89},"h2",{"id":88},"۱-دریافت-کلید-api",[90],{"type":77,"value":91},"۱. دریافت کلید API",{"type":71,"tag":80,"props":93,"children":94},{},[95],{"type":77,"value":96},"برای استفاده از اهور در Claude Code، ابتدا باید یک کلید API دریافت کنید:",{"type":71,"tag":98,"props":99,"children":100},"ul",{},[101,107],{"type":71,"tag":102,"props":103,"children":104},"li",{},[105],{"type":77,"value":106},"به بخش کلید‌های API در پنل توسعه‌دهندگان بروید.",{"type":71,"tag":102,"props":108,"children":109},{},[110],{"type":77,"value":111},"یک کلید جدید ایجاد و آن را در جایی امن ذخیره کنید.",{"type":71,"tag":86,"props":113,"children":115},{"id":114},"۲-نصب-claude-code",[116],{"type":77,"value":117},"۲. نصب Claude Code",{"type":71,"tag":80,"props":119,"children":120},{},[121],{"type":77,"value":122},"Claude Code را با استفاده از npm نصب کنید:",{"type":71,"tag":124,"props":125,"children":129},"pre",{"className":126,"code":127,"language":128,"meta":64,"style":64},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install -g @anthropic-ai/claude-code\n","bash",[130],{"type":71,"tag":131,"props":132,"children":133},"code",{"__ignoreMap":64},[134],{"type":71,"tag":135,"props":136,"children":139},"span",{"class":137,"line":138},"line",1,[140,146,152,157],{"type":71,"tag":135,"props":141,"children":143},{"style":142},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[144],{"type":77,"value":145},"npm",{"type":71,"tag":135,"props":147,"children":149},{"style":148},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[150],{"type":77,"value":151}," install",{"type":71,"tag":135,"props":153,"children":154},{"style":148},[155],{"type":77,"value":156}," -g",{"type":71,"tag":135,"props":158,"children":159},{"style":148},[160],{"type":77,"value":161}," @anthropic-ai/claude-code\n",{"type":71,"tag":86,"props":163,"children":165},{"id":164},"۳-تنظیم-اهور-در-claude-code",[166],{"type":77,"value":167},"۳. تنظیم اهور در Claude Code",{"type":71,"tag":80,"props":169,"children":170},{},[171],{"type":77,"value":172},"برای استفاده از اهور به جای API پیش‌فرض Anthropic، باید متغیرهای محیطی را تنظیم کنید:",{"type":71,"tag":174,"props":175,"children":177},"h3",{"id":176},"تنظیم-با-متغیرهای-محیطی",[178],{"type":77,"value":179},"تنظیم با متغیرهای محیطی",{"type":71,"tag":80,"props":181,"children":182},{},[183],{"type":77,"value":184},"در ترمینال خود، متغیرهای زیر را تنظیم کنید:",{"type":71,"tag":124,"props":186,"children":188},{"className":126,"code":187,"language":128,"meta":64,"style":64},"export ANTHROPIC_BASE_URL=\"https://api.ahur.ai/v1\"\nexport ANTHROPIC_AUTH_TOKEN=\"YOUR_API_KEY\"\n",[189],{"type":71,"tag":131,"props":190,"children":191},{"__ignoreMap":64},[192,228],{"type":71,"tag":135,"props":193,"children":194},{"class":137,"line":138},[195,201,207,213,218,223],{"type":71,"tag":135,"props":196,"children":198},{"style":197},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[199],{"type":77,"value":200},"export",{"type":71,"tag":135,"props":202,"children":204},{"style":203},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[205],{"type":77,"value":206}," ANTHROPIC_BASE_URL",{"type":71,"tag":135,"props":208,"children":210},{"style":209},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[211],{"type":77,"value":212},"=",{"type":71,"tag":135,"props":214,"children":215},{"style":209},[216],{"type":77,"value":217},"\"",{"type":71,"tag":135,"props":219,"children":220},{"style":148},[221],{"type":77,"value":222},"https://api.ahur.ai/v1",{"type":71,"tag":135,"props":224,"children":225},{"style":209},[226],{"type":77,"value":227},"\"\n",{"type":71,"tag":135,"props":229,"children":231},{"class":137,"line":230},2,[232,236,241,245,249,254],{"type":71,"tag":135,"props":233,"children":234},{"style":197},[235],{"type":77,"value":200},{"type":71,"tag":135,"props":237,"children":238},{"style":203},[239],{"type":77,"value":240}," ANTHROPIC_AUTH_TOKEN",{"type":71,"tag":135,"props":242,"children":243},{"style":209},[244],{"type":77,"value":212},{"type":71,"tag":135,"props":246,"children":247},{"style":209},[248],{"type":77,"value":217},{"type":71,"tag":135,"props":250,"children":251},{"style":148},[252],{"type":77,"value":253},"YOUR_API_KEY",{"type":71,"tag":135,"props":255,"children":256},{"style":209},[257],{"type":77,"value":227},{"type":71,"tag":80,"props":259,"children":260},{},[261],{"type":77,"value":262},"برای تنظیم دائمی، این خطوط را به فایل ~/.bashrc یا ~/.zshrc اضافه کنید:",{"type":71,"tag":124,"props":264,"children":266},{"className":126,"code":265,"language":128,"meta":64,"style":64},"echo 'export ANTHROPIC_BASE_URL=\"https://api.ahur.ai/v1\"' >> ~/.bashrc\necho 'export ANTHROPIC_AUTH_TOKEN=\"YOUR_API_KEY\"' >> ~/.bashrc\nsource ~/.bashrc\n",[267],{"type":71,"tag":131,"props":268,"children":269},{"__ignoreMap":64},[270,304,332],{"type":71,"tag":135,"props":271,"children":272},{"class":137,"line":138},[273,279,284,289,294,299],{"type":71,"tag":135,"props":274,"children":276},{"style":275},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[277],{"type":77,"value":278},"echo",{"type":71,"tag":135,"props":280,"children":281},{"style":209},[282],{"type":77,"value":283}," '",{"type":71,"tag":135,"props":285,"children":286},{"style":148},[287],{"type":77,"value":288},"export ANTHROPIC_BASE_URL=\"https://api.ahur.ai/v1\"",{"type":71,"tag":135,"props":290,"children":291},{"style":209},[292],{"type":77,"value":293},"'",{"type":71,"tag":135,"props":295,"children":296},{"style":209},[297],{"type":77,"value":298}," >>",{"type":71,"tag":135,"props":300,"children":301},{"style":148},[302],{"type":77,"value":303}," ~/.bashrc\n",{"type":71,"tag":135,"props":305,"children":306},{"class":137,"line":230},[307,311,315,320,324,328],{"type":71,"tag":135,"props":308,"children":309},{"style":275},[310],{"type":77,"value":278},{"type":71,"tag":135,"props":312,"children":313},{"style":209},[314],{"type":77,"value":283},{"type":71,"tag":135,"props":316,"children":317},{"style":148},[318],{"type":77,"value":319},"export ANTHROPIC_AUTH_TOKEN=\"YOUR_API_KEY\"",{"type":71,"tag":135,"props":321,"children":322},{"style":209},[323],{"type":77,"value":293},{"type":71,"tag":135,"props":325,"children":326},{"style":209},[327],{"type":77,"value":298},{"type":71,"tag":135,"props":329,"children":330},{"style":148},[331],{"type":77,"value":303},{"type":71,"tag":135,"props":333,"children":335},{"class":137,"line":334},3,[336,341],{"type":71,"tag":135,"props":337,"children":338},{"style":275},[339],{"type":77,"value":340},"source",{"type":71,"tag":135,"props":342,"children":343},{"style":148},[344],{"type":77,"value":303},{"type":71,"tag":174,"props":346,"children":348},{"id":347},"تنظیم-در-windows",[349],{"type":77,"value":350},"تنظیم در Windows",{"type":71,"tag":80,"props":352,"children":353},{},[354],{"type":77,"value":355},"در PowerShell:",{"type":71,"tag":124,"props":357,"children":361},{"className":358,"code":359,"language":360,"meta":64,"style":64},"language-powershell shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","$env:ANTHROPIC_BASE_URL = \"https://api.ahur.ai/v1\"\n$env:ANTHROPIC_AUTH_TOKEN = \"YOUR_API_KEY\"\n","powershell",[362],{"type":71,"tag":131,"props":363,"children":364},{"__ignoreMap":64},[365,373],{"type":71,"tag":135,"props":366,"children":367},{"class":137,"line":138},[368],{"type":71,"tag":135,"props":369,"children":370},{},[371],{"type":77,"value":372},"$env:ANTHROPIC_BASE_URL = \"https://api.ahur.ai/v1\"\n",{"type":71,"tag":135,"props":374,"children":375},{"class":137,"line":230},[376],{"type":71,"tag":135,"props":377,"children":378},{},[379],{"type":77,"value":380},"$env:ANTHROPIC_AUTH_TOKEN = \"YOUR_API_KEY\"\n",{"type":71,"tag":80,"props":382,"children":383},{},[384],{"type":77,"value":385},"برای تنظیم دائمی در Windows، از System Properties > Environment Variables استفاده کنید.",{"type":71,"tag":86,"props":387,"children":389},{"id":388},"۴-استفاده-از-claude-code",[390],{"type":77,"value":391},"۴. استفاده از Claude Code",{"type":71,"tag":80,"props":393,"children":394},{},[395],{"type":77,"value":396},"پس از تنظیم، می‌توانید از Claude Code استفاده کنید:",{"type":71,"tag":124,"props":398,"children":400},{"className":126,"code":399,"language":128,"meta":64,"style":64},"claude\n",[401],{"type":71,"tag":131,"props":402,"children":403},{"__ignoreMap":64},[404],{"type":71,"tag":135,"props":405,"children":406},{"class":137,"line":138},[407],{"type":71,"tag":135,"props":408,"children":409},{"style":142},[410],{"type":77,"value":399},{"type":71,"tag":80,"props":412,"children":413},{},[414],{"type":77,"value":415},"نکته: لیست کامل مدل‌ها و قیمت‌ها را در صفحه قیمت‌گذاری مشاهده کنید.",{"type":71,"tag":86,"props":417,"children":419},{"id":418},"۵-نکات-امنیتی-و-مدیریت-هزینه",[420],{"type":77,"value":421},"۵. نکات امنیتی و مدیریت هزینه",{"type":71,"tag":98,"props":423,"children":424},{},[425,430,435],{"type":71,"tag":102,"props":426,"children":427},{},[428],{"type":77,"value":429},"کلید API خود را در اختیار دیگران قرار ندهید.",{"type":71,"tag":102,"props":431,"children":432},{},[433],{"type":77,"value":434},"مصرف و هزینه‌های خود را در بخش آمار استفاده مدیریت کنید.",{"type":71,"tag":102,"props":436,"children":437},{},[438],{"type":77,"value":439},"هر مدل هزینه متفاوتی دارد؛ قبل از استفاده، قیمت‌ها را در صفحه قیمت‌گذاری بررسی کنید.",{"type":71,"tag":86,"props":441,"children":443},{"id":442},"۶-منابع-بیشتر",[444],{"type":77,"value":445},"۶. منابع بیشتر",{"type":71,"tag":98,"props":447,"children":448},{},[449,458,466],{"type":71,"tag":102,"props":450,"children":451},{},[452],{"type":71,"tag":453,"props":454,"children":455},"a",{"href":51},[456],{"type":77,"value":457},"صفحه قیمت‌گذاری",{"type":71,"tag":102,"props":459,"children":460},{},[461],{"type":71,"tag":135,"props":462,"children":463},{},[464],{"type":77,"value":465},"دریافت کلید API",{"type":71,"tag":102,"props":467,"children":468},{},[469],{"type":71,"tag":453,"props":470,"children":474},{"href":471,"rel":472},"https://docs.anthropic.com/claude/docs/claude-code",[473],"nofollow",[475],{"type":77,"value":476},"مستندات Claude Code",{"type":71,"tag":80,"props":478,"children":479},{},[480],{"type":77,"value":481},"در صورت بروز مشکل یا نیاز به راهنمایی بیشتر، به پشتیبانی اهور پیام دهید.",{"type":71,"tag":483,"props":484,"children":485},"style",{},[486],{"type":77,"value":487},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":64,"searchDepth":230,"depth":230,"links":489},[490,491,492,496,497,498],{"id":88,"depth":230,"text":91},{"id":114,"depth":230,"text":117},{"id":164,"depth":230,"text":167,"children":493},[494,495],{"id":176,"depth":334,"text":179},{"id":347,"depth":334,"text":350},{"id":388,"depth":230,"text":391},{"id":418,"depth":230,"text":421},{"id":442,"depth":230,"text":445},"markdown","content:1.docs:3.usage:2.claude-code.md","content","1.docs/3.usage/2.claude-code.md","1.docs/3.usage/2.claude-code","md",[506,508],{"_path":42,"title":41,"description":507},"نحوه استفاده از API اهور در محیط توسعه Cursor",null,1771612258697]