# habits.plan — Habit Planning Intelligence

> habits.plan — Habit Planning Intelligence is a paid API for AI agents from api.mydev-tools.tech, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-27).

Generates an intelligent, personalized habit plan based on user goals and behavioral context

## Facts

- Endpoint: POST https://api.mydev-tools.tech/agent/v1/habits/plan?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/habits-plan-habit-planning-intelligence-445f48c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S9E8KFCfPQ4t9izGkxyo7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability habits-plan-habit-planning-intelligence-445f48c7 -d '<json body>'
```

Example prompt: Can you put together a structured habit plan for me focused on improving my morning routine and fitness over the next 30 days? I want to wake up earlier, exercise 4 times a week, and meditate daily.

## When to prefer this

Choose this endpoint when you need to generate a forward-looking, personalized habit plan from scratch based on user goals. Use this over habits.analyze (which analyzes existing habits) or habits.insights (which extracts insights from habit data) when the user has no current habit data but wants structured recommendations for what to start doing.

## Known failure modes

- Insufficient goal context provided leading to generic or unhelpful plan
- Conflicting or ambiguous inputs resulting in poorly scoped recommendations
- Payment failure via x402 protocol blocking execution
- Malformed request body causing a 400 error
- Timeouts if the generation is complex and server load is high

## How this service works

Habit plan generation (USDC on Base).

## Output

Returns a structured habit plan with recommended habits, their frequency and timing, sequencing logic, and milestones tailored to the user's goals and context. May include rationale for habit choices and tips for adherence.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "habits"
     ],
     "properties": {
      "habits": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "name",
         "completion_rate",
         "current_streak",
         "best_streak"
        ],
        "properties": {
         "name": {
          "type": "string"
         },
         "risk_score": {
          "type": "number",
          "maximum": 1,
          "minimum": 0
         },
         "best_streak": {
          "type": "integer",
          "minimum": 0
         },
         "average_mood": {
          "type": "number",
          "maximum": 10,
          "minimum": 1
         },
         "energy_trend": {
          "enum": [
           "rising",
           "stable",
           "falling"
          ],
          "type": "string"
         },
         "current_streak": {
          "type": "integer",
          "minimum": 0
         },
         "completion_rate": {
          "type": "number",
          "maximum": 1,
          "minimum": 0
         },
         "mood_correlation": {
          "type": "number",
          "maximum": 1,
          "minimum": -1
         }
        }
       },
       "maxItems": 25,
       "minItems": 1
      },
      "locale": {
       "type": "string"
      },
      "persona": {
       "type": "string"
      },
      "horizon_days": {
       "type": "integer",
       "default": 35,
       "maximum": 180,
       "minimum": 7
      }
     },
     "description": "Caller-supplied habit summaries. Stateless: no identifier of any stored human user is accepted or resolved. Batch habits into one call — the price is per request, not per habit.",
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "plan": [
   {
    "habit": "Morning run",
    "milestones": [
     {
      "day": 7,
      "goal": "Match the 21-day best streak pace"
     }
    ],
    "weekly_target": 5
   }
  ],
  "rationale": "Targets the weekend gap without raising total weekly load.",
  "horizon_days": 35
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/habits-plan-habit-planning-intelligence-445f48c7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mydev-tools.tech](https://www.zero.xyz/host/api.mydev-tools.tech/llms.txt)
