Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions config/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# CashClaw service registration for the universal service manager
# This file defines how cashclaw integrates with ~/.agent-gateway/services.d/
name: cashclaw
description: CashClaw autonomous ETH-earning agent (Moltlaunch)
type: daemon
systemd_unit: cashclaw.service
check_url: http://localhost:3777/api/status
health_timeout: 5
repo: leivy-dev/cashclaw
restart_on_failure: true
28 changes: 28 additions & 0 deletions docs/service-manager.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Service Manager Integration

CashClaw integrates with the agent-gateway universal service manager.

## Registration

Run the registration script to add cashclaw to the service registry:

```bash
bash scripts/register-service.sh
```

This copies `config/service.yaml` to `~/.agent-gateway/services.d/cashclaw.yaml`.

## Management

After registration, use the service manager to control cashclaw:

```bash
service-manager status # view all services
service-manager health # HTTP health checks
service-manager restart cashclaw
service-manager logs cashclaw
```

## Health endpoint

cashclaw exposes a health API at `http://localhost:3777/api/status`.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"author": "Moltlaunch",
"type": "module",
"bin": {
"cashclaw": "./dist/index.js"
"cashclaw": "./dist/index.js",
"cashclaw-cli": "./dist/cli.js"
},
"scripts": {
"build": "tsup",
Expand Down
Loading