balchemy 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "balchemy",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
- "description": "Autonomous AI trading agent for Solana and Base chains",
6
+ "description": "Scaffold and run a Balchemy autonomous AI trading agent in 5 minutes",
7
7
  "main": "dist/index.js",
8
8
  "bin": {
9
- "balchemy": "dist/index.js"
9
+ "create-balchemy-agent": "dist/index.js",
10
+ "balchemy-agent": "dist/index.js"
10
11
  },
11
12
  "files": [
12
13
  "dist",
@@ -26,17 +27,16 @@
26
27
  "homepage": "https://balchemy.ai",
27
28
  "repository": {
28
29
  "type": "git",
29
- "url": "https://github.com/balchemy/balchemy-agent",
30
- "directory": "packages/cli"
30
+ "url": "https://github.com/balchemy-ai/balchemy-agent-sdk"
31
31
  },
32
32
  "bugs": {
33
- "url": "https://github.com/balchemy/balchemy-agent/issues"
33
+ "url": "https://github.com/balchemy-ai/balchemy-agent-sdk/issues"
34
34
  },
35
35
  "engines": {
36
36
  "node": ">=18.0.0"
37
37
  },
38
38
  "dependencies": {
39
- "@balchemyai/agent-sdk": "^0.1.1",
39
+ "@balchemy/agent-sdk": "workspace:^",
40
40
  "@inkjs/ui": "^2.0.0",
41
41
  "dotenv": "^16.0.0",
42
42
  "ink": "^6.0.0",
@@ -6,7 +6,7 @@ FROM node:20-slim
6
6
  WORKDIR /app
7
7
 
8
8
  # Install the agent SDK globally so runner is available as a binary
9
- RUN npm install -g @balchemyai/agent-sdk create-balchemy-agent
9
+ RUN npm install -g @balchemy/agent-sdk create-balchemy-agent
10
10
 
11
11
  # Copy user config files
12
12
  COPY agent.config.yaml ./
@@ -0,0 +1,71 @@
1
+ # Balchemy Agent Configuration — Full Example
2
+ # All three preset strategies are shown here as commented blocks.
3
+ # Uncomment the one you want to use and delete the others.
4
+ #
5
+ # Environment variable references: ${VAR_NAME}
6
+ # These are resolved from .env at startup.
7
+
8
+ mcp_endpoint: "${MCP_ENDPOINT}"
9
+ api_key: "${BALCHEMY_API_KEY}"
10
+
11
+ llm:
12
+ provider: anthropic # anthropic | openai
13
+ api_key: "${LLM_API_KEY}"
14
+ model: claude-haiku-4-5 # Haiku is fast + cheap, ideal for reactive trading
15
+ max_daily_usd: 5 # Hard budget cap. Agent pauses when hit.
16
+ timeout_ms: 10000
17
+
18
+ # ─── Strategy: DCA Accumulator ─────────────────────────────────────────────────
19
+ strategy: dca-accumulator
20
+
21
+ behavior_rules:
22
+ version: "1"
23
+ preset: dca-accumulator
24
+ dca:
25
+ target_token: SOL
26
+ amount_usd: 10 # Buy $10 per interval
27
+ interval_hours: 24
28
+ max_total_usd: 1000 # Stop after $1000 invested
29
+ risk:
30
+ max_single_trade_usd: 10
31
+ pause_on_drawdown_pct: 30 # Pause DCA if portfolio drops 30%
32
+
33
+ # ─── Strategy: Memecoin Sniper ──────────────────────────────────────────────────
34
+ # strategy: memecoin-sniper
35
+ # behavior_rules:
36
+ # version: "1"
37
+ # preset: memecoin-sniper
38
+ # filters:
39
+ # min_liquidity_usd: 10000
40
+ # max_market_cap_usd: 5000000
41
+ # require_verified_contract: false
42
+ # entry:
43
+ # trigger: launch_signal
44
+ # max_position_usd: 50
45
+ # slippage_bps: 300
46
+ # exit:
47
+ # take_profit_pct: 100
48
+ # stop_loss_pct: 50
49
+ # max_hold_minutes: 60
50
+
51
+ # ─── Strategy: Swing Trader ────────────────────────────────────────────────────
52
+ # strategy: swing-trader
53
+ # behavior_rules:
54
+ # version: "1"
55
+ # preset: swing-trader
56
+ # entry:
57
+ # indicators: [rsi, macd]
58
+ # rsi_oversold: 30
59
+ # max_position_usd: 200
60
+ # slippage_bps: 100
61
+ # exit:
62
+ # take_profit_pct: 20
63
+ # stop_loss_pct: 10
64
+ # min_hold_hours: 2
65
+ # max_hold_hours: 72
66
+
67
+ # ─── Webhook (optional) ─────────────────────────────────────────────────────────
68
+ # Uncomment to receive Balchemy push events directly (faster than SSE polling)
69
+ # webhook:
70
+ # port: 4242
71
+ # secret: "${WEBHOOK_SECRET}"