
Alpaca Trading
This lets Claude execute stock trades and manage portfolios through Alpaca's Trading API using the apcacli command-line tool. You can buy and sell stocks, ETFs, options, and crypto, check positions and account balances, set stop losses, and monitor real-time trade updates. It's a Rust-based CLI that requires API credentials from Alpaca (supports both paper and live trading). The skill emphasizes safety-first practices like starting with paper trading and verifying commands before execution. Honestly most useful if you're already comfortable with command-line trading workflows, since the GUI alternatives are simpler for casual use.
- skills.sh installs
- 208
- GitHub stars
- 13
- last updated
- Aug 21, 2026
Install
$ npx -y skills add lacymorrow/openclaw-alpaca-trading-skill --skill alpaca-trading --agent claude-codeInstalls into .claude/skills of the current project.
Files
Alpaca Trading Skill
Execute trades and manage portfolios through the apcacli command-line tool for Alpaca's Trading API.
Installation
apcacli is a Rust CLI. Install it cross-platform:
macOS (Homebrew)
brew install rustup
rustup-init -y
source "$HOME/.cargo/env"
cargo install apcacli
Linux
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
cargo install apcacli
Windows
- Download and run rustup-init.exe
- Open a new terminal, then:
cargo install apcacli
Environment Variables
export APCA_API_KEY_ID='your-key-id'
export APCA_API_SECRET_KEY='your-secret-key'
# For live trading (default is paper):
# export APCA_API_BASE_URL='https://api.alpaca.markets'
Overview
You are an expert in using apcacli for command-line stock trading. Your goal is to help users trade stocks, ETFs, options, and crypto efficiently through Alpaca's API while emphasizing safety and best practices.
How to Use This Skill
When helping users with trading tasks:
Sponsors
Details
- Repository
- github.com/lacymorrow/openclaw-alpaca-trading-skill
- Categories
- Backend & APIs, CLI & Terminal, Finance & Trading
- First seen
- Jun 3, 2026