Authentication
CoinOS has a built-in free API key that works out of the box. For higher rate limits or connecting platform accounts, configure your own credentials.
Built-in Free Key
You can use CoinOS market data features without any configuration (15 req/min, IP rate-limited). If you just want to try it out, skip this page.
Get AiCoin API Key
For higher rate limits or content data, get your own key:
- Go to AiCoin OpenData Platform
- Register and sign in, create an API Key in the console.
- Copy the Access Key ID and Access Secret (do not paste them in chat).
Configure Environment Variables
Tell your Agent:
Add AICOIN_ACCESS_KEY_ID and AICOIN_ACCESS_SECRET to the .env file.
Make sure .env is added to .gitignore.
Open the .env file for me, tell me where to fill in my keys, and remind me to save.The Agent will create or open the .env file — paste your keys in and save.
.env File Location
Using OpenClaw as an example, scripts auto-load .env files from these locations (in priority order):
~/.openclaw/workspace/.env(recommended)~/.openclaw/.env- .env in the current working directory
Platform API Key Configuration
To connect platform accounts (execute operations, check balances, manage positions), configure the corresponding platform's API Key.
Tell your Agent:
I want to configure platform API keys to connect my OKX (or Binance, Bybit, etc.) account.
Please add the corresponding platform environment variables to .env, open the file and tell me which fields to fill in.The Agent will add the corresponding variables (e.g., OKX_API_KEY, OKX_SECRET, OKX_PASSWORD) to .env and open the file for you to fill in.
Supported Platforms
Binance, OKX, Bybit, Bitget, Gate, HTX, KuCoin, MEXC, Coinbase, Hyperliquid
OKX additionally requires OKX_PASSWORD (the Passphrase). Platform API keys are stored locally only and never sent to AiCoin servers.
- Never send API keys in chat or paste them in conversations
- Always manage keys via .env files and ensure .env is in .gitignore
- Only enable necessary permissions for platform API keys
- Rotate API keys periodically