Your autonomous farming assistant that grows with you
From a single potted lemon to a full permaculture food forest
farm_clawed is an AI-first farm automation platform you run on your own devices. Whether you're nurturing a single container plant or managing a commercial permaculture operation, farm_clawed provides intelligent recommendations, safety-first automation, and ROI tracking.
Farm Map view with AI Insights panel and floating chat assistant
- AI-First Interface β ChatGPT-style conversational UI as your primary farming tool
- Floating AI Assistant β Access farm_clawed from any page via the floating chat bubble
- Day 1 Value β Works immediately with manual logs and templates, no hardware required
- Permaculture-Ready β Native support for zones, sectors, guilds, and succession planning
- Safety-First Automation β Toyota-style Jidoka principles for physical automation
- Local LLM Support β Run with Ollama for privacy and offline operation
- Interactive Farm Map β Satellite, terrain, and default map layers with asset overlays
- Scale Smoothly β From container gardening to commercial operations
The farm_clawed dashboard is designed like ChatGPT β your AI assistant is the interface, not just a feature. Ask questions, get sensor cards, approve automations, all in a natural conversation flow.
Access farm_clawed from anywhere in the app. The floating π± button in the bottom-right corner opens a quick chat panel with full context awareness of what you're viewing.
Full-screen interactive map with:
- Default/Satellite/Terrain layer switching
- AI Insights floating panel
- Pending Automations overlay
- Asset markers with status colors
Run farm_clawed completely offline with Ollama:
# Install Ollama
brew install ollama
# Pull a model
ollama pull llama3.2
# farm_clawed auto-detects Ollama on localhost:11434| Level | Name | What You Get |
|---|---|---|
| 0 | Standard | Conventional farm ops, fields/blocks/irrigation zones |
| 1 | Regen-Friendly | Soil health focus, water conservation, IPM basics |
| 2 | Permaculture-Lite | Optional zones/sectors, guild guidance |
| 3 | Full Permaculture | Complete zones/sectors, guilds, stacking, succession |
| Level | Name | Control Style |
|---|---|---|
| 0 | Observe | Dashboards and logs only |
| 1 | Assist | AI recommendations + checklists |
| 2 | Propose | Human-in-loop approvals (default) |
| 3 | Auto-Guardrails | Automatic within safety limits |
| 4 | Full Ops | Hardware integration with strict Jidoka |
Get started in 5 minutes with AI recommendations based on your manual inputs:
# Install
npm install -g farm_clawed@latest
# Initialize your farm context
farm_clawed farm init
# Answer the setup wizard questions about your farm
# Then get your first AI analysis:
farm_clawed farm schedule runSee farm_clawed in action with our flagship demo:
# Start the gateway
farm_clawed gateway --port 18789
# Open the web UI
open http://localhost:18789
# Navigate to Farm tab to see the dashboardThe experiment demonstrates:
- Real sensor data (Tuya/SmartLife soil sensor)
- AI-driven watering recommendations
- Safety guardrails in action
- ROI tracking from day 1
- How a single plant scales to an orchard
Runtime: Node 22+
# npm
npm install -g farm_clawed@latest
# pnpm
pnpm add -g farm_clawed@latest
# Run onboarding
farm_clawed onboard --install-daemongit clone https://github.com/rahulraonatarajan/farm_clawed.git
cd farm_clawed
pnpm install
pnpm ui:build
pnpm build
pnpm farm_clawed onboard --install-daemonMinimal ~/.farm_clawed/farm_clawed.json:
{
farm: {
permacultureDepth: 1, // 0-3
automationLevel: 1, // 0-4
},
agent: {
model: "ollama/llama3.2", // local LLM
},
}# Optional: AI provider (works without, uses Ollama by default)
AI_PROVIDER=local # or openai, anthropic, none
# Optional: Cloud AI (if not using Ollama)
AI_API_KEY=sk-...
# Optional: IFTTT for actuator control
IFTTT_WEBHOOK_KEY=your-keyfarm_clawed uses a simple template system to understand your farm:
| File | Purpose |
|---|---|
farm_profile.yaml |
Location, climate, constraints |
farm_map.geojson |
Areas/fields/zones as polygons |
water_assets.csv |
Water sources, valves, sensors |
roi_inputs.yaml |
Cost tracking configuration |
sensor_readings.csv |
Manual or imported sensor data |
season_calendar.yaml |
Planting windows, frost dates |
| File | Purpose |
|---|---|
zones_0_5.geojson |
Permaculture zone boundaries |
sectors.yaml |
Sun, wind, water flow analysis |
guilds.yaml |
Plant guild definitions |
succession_plan.yaml |
Multi-year succession stages |
water_budget.yaml |
Drought stages and priorities |
See docs/FARM_CONTEXT_PACK.md for complete specifications.
# Farm management
farm_clawed farm init # Initialize farm context
farm_clawed farm status # Show current status
farm_clawed farm schedule run # Trigger AI analysis
# Approvals and safety
farm_clawed farm approve <id> # Approve pending action
farm_clawed farm audit # View audit log
# Export and reporting
farm_clawed farm export # Export data/reports
farm_clawed farm roi # Show ROI dashboardfarm_clawed implements Toyota-style autonomation for physical automation:
- Leak Detection β Flow without valve open command
- Overwatering β Moisture > threshold for too long
- EC Spike β High EC combined with dry soil
- Frost Risk β Soil temperature dropping rapidly
Every action is logged with SHA256 hash chain for tamper-evident history.
- Level 0-2: All actuator actions require human approval
- Level 3: Automatic within guardrails, alerts on anomalies
- Level 4: Full automation with strict Jidoka and incident runbooks
- Tuya/SmartLife β Soil sensors, valve controllers
- IFTTT Webhooks β Scene-based actuation
- Home Assistant β Bridge stub (coming soon)
FARM_LEMON_WATER_1MIN
FARM_LEMON_WATER_2MIN
FARM_LEMON_WATER_5MIN
FARM_LEMON_WATER_10MIN
FARM_ALL_OFF
See docs/IFTTT_SMARTLIFE_SETUP.md for setup guide.
farm_clawed tracks return on investment across:
- Water Savings β Gallons saved vs baseline
- Time Savings β Hours freed per week
- Avoided Loss β Prevented plant death/damage
- Input Savings β Reduced fertilizer waste
- Payback Period β Months to recover equipment cost
ROI adapts to your chosen permaculture depth and automation level.
| Tier | Tools | Value |
|---|---|---|
| 0 | AI console (free) | Time saved, better decisions |
| 1 | Paid AI models | Higher quality recommendations |
| 2 | Workflows | Automated scheduling |
| 3 | Custom skills | Domain-specific knowledge |
| 4 | Local LLM | Privacy + cost savings |
| 5 | Full hardware | End-to-end automation |
farm_clawed/
βββ src/farm/ # Farm-specific logic
β βββ schemas/ # Zod validation schemas
β βββ safety/ # Jidoka implementation
β βββ ai/ # Provider abstraction
β βββ roi/ # ROI calculator
βββ skills/
β βββ farm-standard/ # Standard farm skills
β βββ farm-permaculture/ # Permaculture skills
βββ extensions/
β βββ ifttt-smartlife/ # Optional actuator connector
βββ ui/src/ui/
βββ views/
β βββ farm-dashboard.ts # ChatGPT-style AI interface
β βββ farm-map-dashboard.ts # Full-screen map with overlays
β βββ farm-equipment.ts # Equipment management
β βββ farm-automations.ts # Automation history
βββ components/
βββ chat-bubble.ts # Floating AI assistant
See docs/ARCHITECTURE_REVIEW.md for details.
Our live demo showcases farm_clawed managing a containerized Meyer Lemon:
Hardware:
- SmartLife/Tuya Valve Controller 2 + Gateway
- Tuya Solar Soil Sensor (Moisture + Temp + EC)
Day 1 Readings:
- Moisture: 17%
- Soil Temp: 54.5Β°F
- EC: 0.001 mS/cm
- Battery: 57%
Route: /farm (Dashboard) or /farm/map (Map View)
This experiment demonstrates how the same system scales from a single container plant to an entire orchard or farm.
farm_clawed is built on the shoulders of giants:
- Peter Steinberger β Creator of OpenClaw, the powerful AI platform that farm_clawed is built upon
- Rahul Rao Natarajan β farm_clawed fork maintainer, autonomous farming features
We welcome contributions from farmers, developers, and permaculture enthusiasts! See CONTRIBUTING.md for guidelines.
MIT License β see LICENSE for details.
This project is open source to ensure farmers everywhere can benefit from AI-assisted automation. Commercial use, modification, and distribution are all permitted under the MIT license.
farm_clawed β Growing smarter, together. π±
