revx-auth
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAuth & Account Setup (revx configure
)
revx configure认证与账户设置(revx configure
)
revx configureInstall the CLI, generate API keys, and configure write-operation security.
Auto-resolve target. When invoked from anotherskill due to an auth error, do not bounce the user back to manual setup. Diagnose the failure against the Error Reference below, run the fix yourself (e.g.revx-*,chmod 600 ~/.config/revolut-x/private.pem,revx configure generate-keypair), then return to the calling skill and retry the original command. Only ask the user for inputs that only they can provide: the 64-character API key string, confirmation that they have registered the public key in their Revolut X profile, the keypair passphrase, or approval to overwrite an existing keypair.revx configure set --api-key <key>
安装CLI、生成API密钥并配置写入操作安全设置。
自动修复目标:当因认证错误从其他技能调用时,请勿让用户返回手动设置。根据下方的错误参考诊断故障,自行执行修复操作(例如revx-*、chmod 600 ~/.config/revolut-x/private.pem、revx configure generate-keypair),然后返回调用技能并重试原命令。仅向用户请求只有他们能提供的信息:64位字符的API密钥字符串、确认已在Revolut X个人资料中注册公钥、密钥对密码,或允许覆盖现有密钥对的确认。revx configure set --api-key <key>
Prerequisites
前置条件
- Node.js >= 20 (check with )
node -v - npm (comes with Node.js)
- Node.js >= 20(使用检查版本)
node -v - npm(随Node.js一同安装)
Install
安装
bash
npm install -g @revolut/revolut-x-cli && npm link @revolut/revolut-x-cliAfter install, is available as a global command:
revxbash
revx --version # Should print the versionbash
npm install -g @revolut/revolut-x-cli && npm link @revolut/revolut-x-cli安装后,作为全局命令可用:
revxbash
revx --version # 应输出版本号Getting Started
快速开始
Step 1: Configure Authentication
步骤1:配置认证
bash
revx configure # Interactive setup wizardThis will:
- Generate an Ed25519 keypair (private + public key)
- Display your public key — copy it
- Prompt you to register the public key at exchange.revolut.com -> Profile -> API Keys
- Create a new API key — tick the "Allow usage via Revolut X MCP and CLI" checkbox
- Prompt for the 64-character API key you receive after registration
Or do it step-by-step:
bash
revx configure generate-keypair # Creates Ed25519 keypairbash
revx configure # 交互式设置向导该命令将执行以下操作:
- 生成Ed25519密钥对(私钥+公钥)
- 显示你的公钥——请复制它
- 提示你在exchange.revolut.com -> 个人资料 -> API密钥页面注册公钥
- 创建新的API密钥——勾选**"允许通过Revolut X MCP和CLI使用"**复选框
- 提示你输入注册后获得的64位字符API密钥
或者分步执行:
bash
revx configure generate-keypair # 创建Ed25519密钥对Register public key at exchange.revolut.com -> Profile -> API Keys
在exchange.revolut.com -> 个人资料 -> API密钥页面注册公钥
Create API key — tick "Allow usage via Revolut X MCP and CLI"
创建API密钥——勾选"允许通过Revolut X MCP和CLI使用"
revx configure set --api-key <64-char-key>
undefinedrevx configure set --api-key <64-char-key>
undefinedStep 2: Verify Configuration
步骤2:验证配置
bash
revx configure get # Show config status (keys redacted)
revx configure path # Print config directory pathbash
revx configure get # 显示配置状态(密钥已脱敏)
revx configure path # 打印配置目录路径Config Commands
配置命令
bash
revx configure # Interactive setup wizard
revx configure get # Show config status (keys redacted)
revx configure set --api-key <key> # Set API key
revx configure generate-keypair # Generate Ed25519 keypair
revx configure path # Print config directory pathbash
revx configure # 交互式设置向导
revx configure get # 显示配置状态(密钥已脱敏)
revx configure set --api-key <key> # 设置API密钥
revx configure generate-keypair # 生成Ed25519密钥对
revx configure path # 打印配置目录路径Config Location
配置文件位置
| Platform | Path |
|---|---|
| macOS/Linux | |
| Windows | |
| Override | |
| 操作系统 | 路径 |
|---|---|
| macOS/Linux | |
| Windows | |
| 自定义路径 | |
Error Reference
错误参考
| Error | Cause | Fix |
|---|---|---|
| Auth not configured | Missing API key or private key | Run |
| Authentication failed (401) | Invalid key or signature | Re-register public key at exchange.revolut.com |
| Network error | Connection/timeout failure | Check connectivity, retry |
| 错误信息 | 原因 | 修复方法 |
|---|---|---|
| 未配置认证 | 缺少API密钥或私钥 | 运行 |
| 认证失败(401) | 密钥或签名无效 | 在exchange.revolut.com重新注册公钥 |
| 网络错误 | 连接/超时失败 | 检查网络连接,重试 |
Next Steps
后续步骤
Once configured, explore:
- Check your balances and order history — see skill
revx-account - View market prices and candles — see skill
revx-market - Place your first order — see skill
revx-trading
配置完成后,可探索以下功能:
- 查看账户余额和订单历史——查看技能
revx-account - 查看市场价格和K线——查看技能
revx-market - 下达首笔订单——查看技能
revx-trading
Related Skills
相关技能
| Skill | Purpose |
|---|---|
| Currencies, pairs, tickers, candles, order book |
| Balances, order queries, trade history, events |
| Place and cancel orders |
| Live price/indicator alerts |
| Telegram notification setup |
| Grid bot backtest, optimize, run |
| 技能 | 用途 |
|---|---|
| 货币、交易对、行情、K线、订单簿 |
| 余额、订单查询、交易历史、事件记录 |
| 下单与撤单 |
| 实时价格/指标提醒 |
| Telegram通知设置 |
| 网格机器人回测、优化、运行 |