@autotask/atools-tool
v0.1.11
Published
ATools CLI for OpenClaw proxy compatibility and interactive model configuration
Maintainers
Readme
atools-tool
ATools CLI for OpenClaw:
- proxy compatibility for sub2api-style upstreams
- one-click installer
- interactive OpenClaw model config
Expected Usage
atools-tool <command>Available command:
atools-tool openclawInteractive flow:
- Check local proxy status (
127.0.0.1:18888); if not running, ask whether to start it first - Select default model:
gpt-5.2/gpt-5.3-codex/gpt-5.4 - Configure reasoning:
off/on - Configure thinking strength:
off|minimal|low|medium|high|xhigh - Input API key (leave empty to keep current key)
Selection UX:
- TTY terminal: use
↑/↓andEnter - Non-TTY: falls back to number input
If proxy startup fails during atools-tool openclaw, the CLI now prints environment-aware troubleshooting hints (systemd user bus, permissions, port readiness) and does not silently fail.
Rollback to codex-compatible defaults:
atools-tool openclawRecommended selections:
gpt-5.3-codexofflow- Input your ATools key (same as ATOOLS_OAI_KEY)
Install (npm)
npm i -g @autotask/atools-toolDefault full install (recommended):
npm i -g @autotask/atools-tool && atools-tool install-proxy && atools-tool openclawOptional installer command:
atools-tool install-proxy --helpatools-tool install-proxy service behavior by platform (legacy alias: atools-tool-install):
- Linux: systemd user service (fallback to detached process if
systemctl --useris unavailable) - macOS: launchd user agent (
~/Library/LaunchAgents) - Windows: Task Scheduler user task (ONLOGON + start now)
By default, installer does not hard-force a single outbound model.
Proxy normalizes sub2api/<model> to plain model id for codex-compatible upstreams.
Proxy Command
atools-tool serve --port 18888 --upstream https://sub2api.atools.liveRepo Install
git clone https://github.com/aak1247/sub2api-openclaw-proxy.git
cd sub2api-openclaw-proxy
./install.shBootstrap Install
curl -fsSL https://raw.githubusercontent.com/aak1247/sub2api-openclaw-proxy/main/bootstrap-install.sh | bashWhat Installer Changes
- patches
~/.openclaw/openclaw.json - patches
~/.openclaw/agents/main/agent/models.json - patches
~/.openclaw/agents/main/agent/auth-profiles.json(if API key is available) - service install by platform:
- Linux: creates/enables
~/.config/systemd/user/openclaw-atools-proxy.service- if user bus/systemd is unavailable (for example container/root without login bus), installer auto-falls back to detached proxy process
- macOS: creates/enables
~/Library/LaunchAgents/openclaw-atools-proxy.plist - Windows: creates/updates scheduled task
openclaw-atools-proxy
- Linux: creates/enables
- restarts
openclaw-gateway.serviceonly on Linux (unless--no-restart)
Default proxy log:
/tmp/openclaw/atools-compat-proxy.logUninstall
./scripts/uninstall.shLicense
MIT
