شعار Arvancloud Api

Arvancloud Api

المجتمع
erfnzdeh
arvancloud-api

Operate ArvanCloud (arvancloud.ir) through its REST APIs, including CDN and DNS records, domains, cache purge, WAF and rate limits, Cloud Server (IaaS v3, v1 and the undocumented v2 backups), Object Storage, Edge Computing, Cloud Container, VOD, Live and Video Ads, plus Let's Encrypt DNS-01 certificates via acme.sh dns_arvan. Use when the user wants to list, create, change or delete anything on ArvanCloud, take an account inventory, find out which account a key belongs to, check quota or usage, or debug an ArvanCloud API error. Also trigger on hosts like napi.arvancloud.ir, ecc.{region}.arvanapis.ir, storage.arvanapis.ir, dejban.arvancloud.ir, an "Apikey" Authorization header, the dns_arvan plugin, or one of the user's ArvanCloud-hosted domains.

نظرة عامة

الناشرerfnzdeh
المستودعarvancloud-agent-skill
اسم المهارةarvancloud-api
النجوم
139
التفريعات
0
الملفات المرفقة
8
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 8

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها erfnzdeh على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Arvancloud Api في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/erfnzdeh/arvancloud-agent-skill/tree/main/skills/arvancloud-api
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/erfnzdeh/arvancloud-agent-skill.git /tmp/arvancloud-agent-skill
mkdir -p .claude/skills
cp -r /tmp/arvancloud-agent-skill/skills/arvancloud-api .claude/skills/arvancloud-api
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Arvancloud Api في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Arvancloud Api تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Arvancloud Api بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

ArvanCloud API

Tested reference for driving ArvanCloud's REST APIs from the command line or an agent. Each product has its own base URL and spec, Cloud Server has three API generations, and Object Storage has a second auth scheme. This skill gets those details right so you don't guess.

Unofficial, community-maintained skill. Not affiliated with or endorsed by ArvanCloud. Hosts, paths and response shapes were checked against the published OpenAPI specs and read-only live calls on 2026-09-13. The live specs and API remain the source of truth.

Setup

Keep three things separate: the secret (API key) lives in an environment variable, per-user state (default region, cert-deploy hooks, notes) lives in a config file outside the skill, and anything the API can tell you (domains, servers, regions) is fetched live.

1. Credentials: the plugin's settings or an environment variable, never a file in the skill

Every product except the Object Storage S3 API authenticates with a machine-user API key:

Authorization: Apikey <uuid>

In Claude Code with this plugin installed, use the key from the plugin's settings. When the user has saved a key there (/plugin configure arvancloud-api@arvancloud-agent-skill), it arrives as $CLAUDE_PLUGIN_OPTION_API_KEY. If that is set, use it (CONFIRMED_VAR_NAME=CLAUDE_PLUGIN_OPTION_API_KEY) and skip the steps below; the bundled scripts pick it up on their own. If it is empty, suggest saving the key in the plugin's settings, since it is then kept in the system credential store, or fall back to an environment variable.

Everywhere else (Cursor, skills.sh, a manual clone), the key is in an environment variable, and ARVAN_KEY is only the default name. Don't assume that's what it's called. Resolve the real env var every session:

  1. If ~/.config/arvan/config.json exists, read apiKeyEnv from it and check that the named var is set (printenv "$(jq -r .apiKeyEnv ~/.config/arvan/config.json)" >/dev/null).

  2. Otherwise, or if that var is empty, try $ARVAN_KEY.

  3. If that is also unset, stop and ask the user which variable holds the key (or have them export one). A missing key is a question, not a guess.

  4. Once confirmed, write the name back so future sessions don't ask:

    bash
    tmp=$(mktemp) && jq --arg v "$CONFIRMED_VAR_NAME" '.apiKeyEnv = $v' ~/.config/arvan/config.json > "$tmp" && mv "$tmp" ~/.config/arvan/config.json

The var may hold a bare UUID or a copied apikey ... / Apikey ... value. The bundled scripts normalize it; for raw curl do the same:

bash
RAW_KEY="${!CONFIRMED_VAR_NAME}"
TOKEN="${RAW_KEY#apikey }"; TOKEN="${TOKEN#Apikey }"
curl -s -H "Authorization: Apikey $TOKEN" "https://napi.arvancloud.ir/cdn/4.0/domains?per_page=100"

One key sees one account. Users often hold keys for several accounts. Before any write, run GET https://dejban.arvancloud.ir/v1/me and name the account (data.account.name) in the confirmation. Treat a 401 as a bad or revoked key and ask the user to check it. A 403 is covered in the errors table below.

Creating a key: panel, Settings, IAM, Machine users, Create machine user. The key is shown once. Assign IAM access rules per product. Docs: https://docs.arvancloud.ir/fa/developer-tools/api/api-key and https://docs.arvancloud.ir/en/accounts/iam/machine-user. Revoke leaked keys in the same panel page (panel.arvancloud.ir; the old npanel.arvancloud.ir host redirects there).

2. Per-user state: ~/.config/arvan/config.json

On first use, create it from the placeholder template:

bash
mkdir -p ~/.config/arvan
[ -f ~/.config/arvan/config.json ] || cp "${CLAUDE_SKILL_DIR}/assets/config.example.json" ~/.config/arvan/config.json

Schema (see assets/config.example.json):

  • apiKeyEnv: name of the env var holding the key (confirmed with the user, see above).
  • acmeTokenEnv: env var acme.sh's dns_arvan reads (default Arvan_Token).
  • defaultRegion: v3 region host to use when unspecified (ir-central1, ir-northwest1, eu-west1).
  • defaultAz: AZ code for v1/v2 paths and v3 create bodies (e.g. ir-thr-fr1).
  • timeoutSeconds, maxRetries, backoffFactor: used by scripts/arvan-api.sh. It retries only 429, and for GET also 5xx and transient network errors (never DNS or TLS failures).
  • s3AccessKeyEnv, s3SecretKeyEnv, s3Region, s3Endpoint: Object Storage S3 settings. S3 uses separate credentials, not the machine-user key.
  • deployHooks: domain -> { sshHost, certDirs[], reloadCmd } for acme.sh --install-cert.
  • notes: domain -> freeform note for per-domain quirks.

The secret never goes in this file, only the names of env vars. Update the config with the user's OK when you learn a durable fact; don't edit the skill.

3. Everything queryable: fetch live, don't cache

Domains, servers, records, regions and flavors drift. Query them. A stale list is worse than none.

Bundled scripts (bash, curl, jq)

scripts/arvan-api.sh is a thin wrapper that resolves and normalizes the key, passes it to curl through a private temp file (never argv or output), retries safely, and prints HTTP <code> plus a hint for known errors on stderr with the body on stdout.

bash
S="${CLAUDE_SKILL_DIR}/scripts/arvan-api.sh"
"$S" auth:/v1/me | jq '.data.account'                         # which account is this key?
"$S" "/cdn/4.0/domains?per_page=100"                          # any napi.arvancloud.ir path
"$S" v3:ir-central1/servers                                   # https://ecc.ir-central1.arvanapis.ir/v3/servers
"$S" storage:/v1/reports/storage                              # https://storage.arvanapis.ir/v1/...
"$S" --dry-run -X POST -d '{"purge":"all"}' /cdn/4.0/domains/example.ir/caching/purge
"$S" --allow-write -X POST -d '{"purge":"all"}' /cdn/4.0/domains/example.ir/caching/purge   # only after an explicit yes

Exit codes: 0 success (2xx), 1 HTTP or network error (redirects are reported, never followed), 2 usage, 3 key env var unset, 4 write refused (any method other than GET/HEAD needs --allow-write). The key is only ever sent over https to *.arvancloud.ir and *.arvanapis.ir; --dry-run -d @file prints the file's contents. The scripts use the plugin's saved key when there is one. Set ARVAN_KEY_ENV=OTHER_VAR to use a different account's key for one call.

scripts/arvan-inventory.sh prints a read-only snapshot of one account: identity, servers in every region, backups, CDN domains (all pages), Object Storage usage and buckets, Edge Computing and VOD counts. Use it when the user asks "what do I have on ArvanCloud?".

Product map (verified 2026-09-13)

ProductLive base URLOpenAPI spec (https://www.arvancloud.ir/api-docs/...)Live check
CDN / DNS / Security 4.0https://napi.arvancloud.ir/cdn/4.0cdn-4.0.yml200
Cloud Server v3 (preferred)https://ecc.{region}.arvanapis.ir/v3iaas-3.0.0.yaml200
Cloud Server v1 (legacy, widest)https://napi.arvancloud.ir/ecc/v1iaas-1.0.json200
Cloud Server v2 (backups, volume list)https://napi.arvancloud.ir/ecc/v2none (official CLI source)200
Account identityhttps://dejban.arvancloud.ir/v1/menone (official CLI source)200
Object Storage managementhttps://storage.arvanapis.ir/v1 (plain http redirects)storage-1.0.0.yaml200
Object Storage S3https://s3.ir-thr-at1.arvanstorage.ir, https://s3.ir-tbz-sh1.arvanstorage.ir, https://hot.ir-central1.arvanstorage.irdescribed in storage-1.0.0.yamlnot tested (S3 keys)
Edge Computinghttps://napi.arvancloud.ir/edge-computing/v1ec-1.0.yaml200
Cloud Container (CaaS)https://napi.arvancloud.ir/caas/v2/zones/{ir-thr-ba1 or ir-tbz-sh1}paas-1.25.json428 without a namespace
VOD 2.0https://napi.arvancloud.ir/vod/2.0vod-2.0.json200
Live Streaming 2.0https://napi.arvancloud.ir/live/2.0live-2.0.json404 until a Live domain exists
Video Ads 2.0https://napi.arvancloud.ir/vads/2.0vads-2.0.json200 (/channels)
AIaaSnoneaiaas-1.0.yaml returns an HTML page, not a specnone

Fetch specs directly; the ReDoc pages at arvancloud.ir/api/{product}/{version} often time out:

bash
mkdir -p ~/Downloads/arvancloud-api-specs
for spec in cdn-4.0.yml iaas-3.0.0.yaml iaas-1.0.json ec-1.0.yaml storage-1.0.0.yaml \
            paas-1.25.json vod-2.0.json live-2.0.json vads-2.0.json; do
  curl -sL "https://www.arvancloud.ir/api-docs/$spec" -o "$HOME/Downloads/arvancloud-api-specs/$spec"
done

Size for scoping (paths / operations): CDN 156/238, IaaS v3 39/45, IaaS v1 114/136, Edge 18/25, Object Storage 34/58, CaaS 134/299, VOD 30/54, Live 29/36, Video Ads 15/29.

Human guides live on docs.arvancloud.ir, which sits behind Arvan CDN cookies (a bare curl -L loops on 307). Seed cookies first:

bash
COOKIES="$(mktemp)"
curl -s -A "Mozilla/5.0" -c "$COOKIES" "https://docs.arvancloud.ir/fa/developer-tools/api/api-usage" -o /dev/null
curl -sL -A "Mozilla/5.0" -b "$COOKIES" --max-redirs 5 "https://docs.arvancloud.ir/fa/developer-tools/api/api-usage"

Regions and availability zones (live)

v3 region hostAZ codes (v1/v2 paths, v3 availabilityZone)
ir-central1ir-thr-ba1 (Bamdad), ir-thr-fr1 (Foroogh), ir-thr-si1 (Simin), Tehran
ir-northwest1ir-tbz-sh1 (Shahriar), Tabriz
eu-west1eu-west1-a (Goethe), Germany
ir-southwest1ir-southwest1-a (Qeysar), Ahwaz. v3 host fails TLS; use v1/v2

v3 hosts take the region; v1/v2 paths take the AZ code. Each v3 host only lists its own region's resources. Re-check with GET /v3/availability-zones or GET /ecc/v1/regions.

Auth by product

ProductsAuth
CDN, IaaS v1/v2/v3, Object Storage management, Edge, CaaS, VOD, Live, Video Ads, dejbanAuthorization: Apikey <uuid>. The prefix is case-insensitive (the v3 docs write apikey). The v3 and CDN specs also accept Bearer <jwt> panel tokens.
Object Storage S3 APIAWS-style signatures with a separate access key and secret key from the panel, not the machine-user key.
Edge GET /templatesno auth needed (live)

Errors you will see (live)

StatusBodyMeaning
401{"message":"Unauthenticated."} (CDN, VOD), empty (IaaS v1), {"code":3 or 4,"message":"invalid credentials"} (IaaS v2), {"message":"Unauthorized"} (Edge), Unauthorized text (Live)key missing, wrong or revoked
403{"message":"Account requires info completion"}account profile/KYC incomplete. Blocks IaaS; CDN, Storage and Edge still work. Route is valid.
403{"message":"Upgrade plan"}feature needs a higher plan (e.g. Object Storage replications and access points)
403anything elsecheck the machine user's IAM access rules for that product
409{"message":"bucket deletion is already in progress"}Object Storage bucket is being deleted
404{"message":"Domain not found."} on Livecreate the Live product domain first (/live/2.0/domain)
404HTML error page or {"message":"Not Found"}wrong path (e.g. v3 /security-groups, v1 /details)
405{"required_plan":3, ...}CDN feature gated by plan (e.g. DNS export needs Professional)
420noneIaaS quota reached
428{"message":"no namespace is found"}Cloud Container has no namespace in that zone
curl 60certificate mismatch on ecc.*.arvanapis.irv3 host built from an AZ code or unknown region

Where to go next

  • DNS records, domains, cache purge, CDN settings, Let's Encrypt via acme.sh -> references/dns-and-tls.md.
  • Cloud Server (v3 vs v1 vs v2, regions, create body, backups, quota, usage) -> references/iaas.md.
  • Object Storage (management API, S3 endpoints, usage reports) -> references/object-storage.md.
  • Edge Computing, Live, VOD, Cloud Container, Video Ads -> references/products.md.
  • Corrections to arvancloud-mcp and to earlier versions of this skill -> references/mcp-cross-check.md.
  • Wallet balance: no published spec has a wallet or balance endpoint; it is panel-only. The closest API data (quota, CDN plan needed_balance, storage usage) is listed in references/iaas.md.

Safety guardrails

Before destructive or billable operations, show the target account (from /v1/me), the HTTP method, URL and body (arvan-api.sh --dry-run), and ask for confirmation unless the user already approved that exact action in this turn. This covers DNS create/update/delete, domain add/delete, cache purge, CDN/WAF/rate-limit changes, server create/delete/actions, volume/network/floating-IP changes, backups, Object Storage writes/deletes, certificate install hooks, SSH commands and recurring jobs. arvan-api.sh enforces this by refusing non-GET methods without --allow-write.

For read-only requests use GET freely, keep output scoped, and never print keys.

Gotchas that bite everyone

  • The v3 host is ecc.{region}.arvanapis.ir with a region (ir-central1). AZ codes as hostnames fail TLS, arvancloudapis.ir does not resolve, and *.arvanapis.ir has wildcard DNS so resolving proves nothing.
  • v3 lists are per region. An empty /servers on one host does not mean the account has no servers.
  • v3 GET /security-groups is in the spec but 404s; use /firewalls. v3 has no SSH key, snapshot, backup or quota paths; use v1 or v2.
  • IaaS v1 quota is singular /regions/{az}/quota; there is no /ecc/v1/details, no GET .../subnets list and no GET .../ptr.
  • DNS value shapes differ by type: a/aaaa are arrays, aname uses location, srv uses target, and mx is a single object. Send lowercase type.
  • Cache purge is POST /domains/{domain}/caching/purge with {"purge":"all"}, not DELETE .../purge.
  • A domain can be status: active yet not published by Arvan's nameservers. Compare ns_keys with current_ns and run dig SOA <domain> @8.8.8.8 before DNS-01.
  • Iran's DNS filtering returns forged IPs 10.10.34.34/.35/.36, not empty responses. An empty SOA/NS means a delegation problem, not censorship.
  • Object Storage management is https://storage.arvanapis.ir/v1/...; usage is /v1/reports/storage (there is no /v1/stats/...).
  • 403 Account requires info completion is an account state, not a wrong route or a bad key.
  • Don't assume the key lives in $ARVAN_KEY. Use $CLAUDE_PLUGIN_OPTION_API_KEY when the plugin provides it, otherwise resolve apiKeyEnv first.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Arvancloud Api؟

Operate ArvanCloud (arvancloud.ir) through its REST APIs, including CDN and DNS records, domains, cache purge, WAF and rate limits, Cloud Server (IaaS v3, v1 and the undocumented v2 backups), Object Storage, Edge Computing, Cloud Container, VOD, Live and Video Ads, plus Let's Encrypt DNS-01 certificates via acme.sh dns_arvan. Use when the user wants to list, create, change or delete anything on ArvanCloud, take an account inventory, find out which account a key belongs to, check quota or usage, or debug an ArvanCloud API error. Also trigger on hosts like napi.arvancloud.ir, ecc.{region}.arv...

لماذا تستخدم Arvancloud Api على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Arvancloud Api عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Arvancloud Api في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/erfnzdeh/arvancloud-agent-skill/tree/main/skills/arvancloud-api. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Arvancloud Api؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Arvancloud Api؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Arvancloud Api معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Arvancloud Api مجانية؟

نعم. نشرها erfnzdeh على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇