ββββββ βββ βββ β ββ ββββββ βββββββββββββββ ββββββ
ββββ ββ ββββ ββββββ βββ β ββββββ β β βββ ββββ β βββ β βββ
βββ β ββββ βββ βββ βββ β ββ β ββββ β ββββ ββββββ βββ βββ β
ββββ ββββββββ βββββββββ βββ β ββ β ββββ ββββ β βββ β βββββββ
β βββββ βββββββββββ ββββββββββββ βββββββββ ββββ β βββββββββββ ββββ
β ββ β ββ βββ βββ βββββ βββ β β βββ β β β ββ ββ ββ ββ ββ ββββ
β β β β β β β ββ β β β β β ββ β β β β β β ββ β ββ
β β β β β β β β β β β β ββ β
β β β β β β β β β β β
β
Autonomous perpetual futures trading for AI agents
π Website: clawster.org
π€ Autonomous Trading β No human intervention required
π Multi-Market Support β Trade BTC, ETH, and more perpetual futures
π‘οΈ Risk Management β Hard-coded safety limits and position sizing
β‘ Real-time Execution β WebSocket streaming for instant market response
π ERC-8004 Compliant β Blockchain-registered AI agent identity
π Strategy Engine β Trend following, scalping, and custom strategies
π° P&L Tracking β Comprehensive profit/loss monitoring
π Auto-rebalancing β Dynamic position management
Clawster follows a "brain + manuals" architecture:
SKILL.mdβ Core trading logic, risk management, and state machine- Main decision engine that orchestrates all trading operations
- 13 aster-api- skills* β API reference documentation loaded on demand
- Sourced from asterdex/aster-skills-hub
- Includes authentication, market data, trading, websockets, and error handling
This separation ensures the core logic stays focused while API details remain modular and updateable.
git clone https://github.com/clawsteragent/clawster-skill.git
cd clawster-skillnode install.jsThis handles:
- ERC-8004 agent registration on BSC
- Cloning of aster-api-* skills from GitHub
- npm dependency installation
- .env configuration setup
openclaw gateway restart
# Chat with Clawster to begin trading!The install.js script performs these operations:
-
ERC-8004 Registration
- Registers your agent identity on Binance Smart Chain
- Creates immutable on-chain proof of AI agent existence
- Requires ~0.005 BNB for gas fees
-
Skill Dependencies
- Clones 13 aster-api-* skills from aster-skills-hub
- Installs to
~/.openclaw/skills/directory - Skills loaded dynamically as needed
-
Dependencies
- Runs
npm install --production - Installs ethers.js for blockchain interactions
- Sets up secure file permissions
- Runs
-
Environment Setup
- Creates
.envwith API credentials - Configures trading parameters
- Sets secure file permissions (600 on Unix systems)
- Creates
Edit your configuration in TOOLS.md under ### Clawster Config:
### Clawster Config
- agent_id: 12345
- trading_pairs: BTCUSDT,ETHUSDT,SOLUSDT
- max_leverage: 10
- max_position_pct: 20
- max_concurrent: 3
- stop_loss: required
- daily_loss_pct: 5
- max_drawdown_pct: 15
- max_risk_per_trade: 2
- cooldown_after_losses: 3
- cooldown_minutes: 60
- max_daily_trades: 50
- strategy: trend_follower| Parameter | Default | Description |
|---|---|---|
agent_id |
(required) | ERC-8004 agent ID from registration |
trading_pairs |
BTCUSDT,ETHUSDT |
Comma-separated trading pairs |
max_leverage |
10 |
Maximum leverage multiplier |
max_position_pct |
20 |
Max position size as % of balance |
max_concurrent |
3 |
Max simultaneous open positions |
stop_loss |
required |
Force stop-loss on all trades |
daily_loss_pct |
5 |
Daily loss limit (% of balance) |
max_drawdown_pct |
15 |
Maximum portfolio drawdown |
max_risk_per_trade |
2 |
Risk per trade (% of balance) |
cooldown_after_losses |
3 |
Consecutive losses before cooldown |
cooldown_minutes |
60 |
Minutes to wait after loss streak |
max_daily_trades |
50 |
Maximum trades per day |
strategy |
trend_follower |
Trading strategy name |
Clawster enforces hard-coded safety limits that cannot be overridden:
- β Max 20% of balance per position
- β Max 3 concurrent positions
- β Max 10x leverage
- β Mandatory stop-loss on all trades
- β 5% daily loss limit (auto-shutdown)
- β 50 maximum trades per day
- β 3-strike cooldown system
- β 15% maximum drawdown limit
- β Emergency liquidation at risk limits
- β Real-time P&L monitoring
Clawster operates in a continuous cycle:
π SCAN β π ANALYZE β β‘ EXECUTE β ποΈ MONITOR β πͺ EXIT
β β
ββββββββββ REPEAT ββββββββββββββββββββββββββ
- Fetch real-time price data
- Calculate technical indicators
- Identify trading opportunities
- Apply strategy rules (trend following, scalping, etc.)
- Risk assessment and position sizing
- Entry/exit point calculation
- Place orders via Aster DEX API
- Real-time order management
- Immediate confirmation handling
- Track P&L in real-time
- Adjust stop-losses dynamically
- Risk limit enforcement
- Take profit at targets
- Stop-loss execution
- Emergency position closure
node scripts/check-balance.js- Displays current USDT balance on Aster DEX
- Shows available margin and position status
- Verifies API connectivity
Comprehensive documentation available in docs/:
| Document | Description |
|---|---|
architecture.md |
System design and component overview |
configuration.md |
Complete configuration reference |
cron-and-automation.md |
Automated trading schedules |
erc-8004.md |
Blockchain agent registration |
index.md |
Documentation index and quick links |
installation.md |
Detailed installation guide |
memory-and-state.md |
State management and persistence |
risk-management.md |
Risk controls and safety systems |
skills-reference.md |
API skills reference guide |
trading-loop.md |
Trading algorithm deep dive |
Clawster supports two authentication methods:
- Uses API key + secret for HMAC-SHA256 signatures
- Recommended for most users
- Configured via environment variables
- Uses Ethereum wallet for cryptographic signatures
- Advanced users with wallet integration
- Requires additional setup
Default: v1 HMAC authentication is used unless explicitly configured otherwise.
- π Website: clawster.org
- βοΈ OpenClaw: openclaw.com
- π Aster DEX: asterdex.com
- π ERC-8004 Standard: eips.ethereum.org/EIPS/eip-8004
- π Skills Hub: github.com/asterdex/aster-skills-hub
- π BSC Explorer: bscscan.com
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow existing code style
- Add tests for new features
- Update documentation as needed
- Ensure all safety limits remain intact
This project is licensed under the MIT License - see the LICENSE file for details.
β‘ Ready to trade autonomously? Let Clawster handle the markets while you sleep. β‘
Made with π€ by the Clawster team