Install
openclaw plugins install clawhub:@aieev/openclaw-airapi-providerAirAPI Provider for OpenClaw
Use AirAPI models from OpenClaw with a single provider setup.
What this plugin does
- Adds one OpenClaw provider:
airapi - Prompts for
AIRAPI_API_KEYduring setup - Supports these AirAPI model refs:
airapi/qwen/qwen3.5-9bairapi/qwen/qwen3.5-35b-a3b
- Uses per-model runtime endpoints only:
qwen/qwen3.5-9b->https://ap-1.aieev.cloud/ac/7/qwen3-5-9b/v1qwen/qwen3.5-35b-a3b->https://ap-1.aieev.cloud/ac/7/qwen3-5-35b-a3b/v1
- Does not rely on a shared provider runtime fallback endpoint
Install
Once published to ClawHub:
openclaw plugins install clawhub:@aieev/openclaw-airapi-provider
For a local checkout:
openclaw plugins install /path/to/openclaw-airapi-provider
Authenticate
Run:
openclaw models auth login --provider airapi
Or use onboarding:
openclaw onboard- choose
AirAPI - enter your AirAPI API key
You can also provide the key with:
--airapi-api-key <YOUR_AIRAPI_API_KEY>
Environment variable:
AIRAPI_API_KEY
Model availability
This plugin intentionally exposes only the supported AirAPI models listed above. It does not depend on a shared model-discovery runtime endpoint.
On onboarding, the plugin configures both supported models into OpenClaw's model allowlist and sets:
- primary model:
airapi/qwen/qwen3.5-35b-a3b
Base URL behavior
Provider-level runtime base URL:
https://ap-1.aieev.cloud/ac/7/qwen3-5-35b-a3b/v1
Per-model runtime base URLs:
qwen/qwen3.5-9b->https://ap-1.aieev.cloud/ac/7/qwen3-5-9b/v1qwen/qwen3.5-35b-a3b->https://ap-1.aieev.cloud/ac/7/qwen3-5-35b-a3b/v1
Usage
Example model refs:
airapi/qwen/qwen3.5-9bairapi/qwen/qwen3.5-35b-a3b
Check configured model state:
openclaw models status --plainopenclaw models list --all --provider airapi --plain
Troubleshooting
-
AirAPI does not appear in onboarding
- restart OpenClaw after installing the plugin
- check:
openclaw plugins inspect openclaw-airapi-provider
-
Only one AirAPI model appears in
/models- reinstall a version that includes onboarding preset support for both models
- rerun onboarding so both models are written into
agents.defaults.models
-
API key prompt works but inference returns model not found
- verify you selected one of the supported model refs listed above
- verify the installed plugin version is current
-
Model pricing or config not updating after a plugin update
- re-onboarding does not overwrite existing model definitions in the config
- remove the
airapisection frommodels.providersin~/.openclaw/openclaw.json - uninstall and reinstall the plugin, then re-onboard:
bash openclaw plugins uninstall openclaw-airapi-provider openclaw plugins install clawhub:@aieev/openclaw-airapi-provider openclaw onboard
Development
Requirements:
- Node.js 20+
- pnpm
Install:
pnpm install
Test:
pnpm test
Watch tests:
pnpm test:watch
Publish to ClawHub
Install the ClawHub CLI and authenticate:
npm i -g clawhubclawhub loginclawhub whoami
Validate before publishing:
clawhub package publish aieev/openclaw-airapi-provider --dry-run
Publish:
clawhub package publish aieev/openclaw-airapi-provider
After publishing, users can install with:
openclaw plugins install clawhub:@aieev/openclaw-airapi-provider
Current implementation notes
- Provider id:
airapi - Plugin id:
openclaw-airapi-provider - Package name:
@aieev/openclaw-airapi-provider - API transport:
openai-completions
