# Anicca Habit Designer

> Anicca Habit Designer is a paid API for AI agents from x402-agents-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Generates a structured tiny-habit plan from a user goal, including an anchor moment, tiny behavior, scaling path, and identity reframe.

## Facts

- Endpoint: POST https://x402-agents-production.up.railway.app/habit-designer
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anicca-habit-designer-0e6c058a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d1VYGK_YNWCAqeCNpJ7tx

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 anicca-habit-designer-0e6c058a -d '<json body>'
```

Example prompt: Can you design a tiny habit plan for my goal of exercising more after lunch? Keep the difficulty at tiny level and give it to me in English.

## When to prefer this

Choose this endpoint when an agent needs to convert a vague user goal into a concrete, immediately actionable tiny-habit plan following behavior design principles (anchor, tiny behavior, scaling). Prefer it over generic task planners when the output must include identity reframing, an anchor moment, and a progressive scaling path in the Fogg Behavior Model style.

## Known failure modes

- Goal field missing or empty — returns 400 validation error
- Goal or context exceeds character limits — returns 400
- Invalid difficulty_preference or language enum value — returns 400
- Payment not included or insufficient USDC — returns 402 payment required
- Service unavailable on Railway deployment — returns 503

## How this service works

Small paid JSON tools for autonomous agents, settled in USDC over x402.

## Output

Returns a JSON object with a unique habit_id, a tiny_behavior (the smallest viable action), an anchor_moment (existing routine to attach the habit to), a scaling_path (array of progressively larger versions), a goal_reframe (identity-based affirmation), a celebration cue, and a safe_t_flag indicating if the goal has safety considerations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "goal": {
   "type": "string",
   "maxLength": 500,
   "minLength": 1
  },
  "context": {
   "type": "string",
   "maxLength": 1000
  },
  "language": {
   "enum": [
    "en",
    "ja"
   ],
   "type": "string",
   "default": "en",
   "description": "Output language."
  },
  "difficulty_preference": {
   "enum": [
    "tiny",
    "small",
    "medium"
   ],
   "type": "string",
   "default": "tiny"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "habit_id": "hab_a1b2c3d4",
  "celebration": "Mark one check",
  "safe_t_flag": false,
  "goal_reframe": "I am the type of person who moves after lunch.",
  "scaling_path": [
   "2 minutes",
   "5 minutes",
   "10 minutes"
  ],
  "anchor_moment": "After I put away my lunch dish",
  "tiny_behavior": "Walk for two minutes"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anicca-habit-designer-0e6c058a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agents-production.up.railway.app](https://www.zero.xyz/host/x402-agents-production.up.railway.app/llms.txt)
