Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

amodal dev

Start a local runtime server for development. The server watches your repo config files and hot-reloads on every change.

amodal dev

Options

FlagDefaultDescription
--port3847Runtime server port
--host0.0.0.0Server host
--resumeResume a previous session by ID or latest
--no-studiofalseDo not spawn Studio subprocess
--no-adminfalseDo not spawn admin agent subprocess
-vIncrease log verbosity (-v for debug, -vv for trace)
-q / --quietOnly show errors

If the runtime port (default 3847), Studio port (3848), or admin agent port (3849) is already in use, amodal dev will fail with an error. Stop the existing process or use --port to select a different runtime port.

Log Levels

The default log level is info — startup messages, connection status, and warnings. Use -v or -vv to see more, or -q to see less.

FlagLevelWhat you see
-qerrorErrors and fatal only
(default)infoStartup, connections, warnings
-vdebugSession init, MCP, store ops, config reload
-vvtraceTool execution, upstream library output

You can also set the LOG_LEVEL environment variable (trace, debug, info, warn, error, fatal, none). The env var takes precedence over CLI flags.

# Quiet mode
amodal dev -q
 
# Debug output
amodal dev -v
 
# Full trace (including upstream library noise)
amodal dev -vv
 
# Via environment variable
LOG_LEVEL=debug amodal dev

What It Does

  1. Loads your repo configuration from the project root
  2. Starts an Express server with SSE streaming
  3. Watches all config files with 300ms debounce
  4. Manages sessions with TTL-based cleanup

Endpoints

The dev server exposes:

MethodPathDescription
POST/chat/streamSend a message, receive SSE stream
POST/chat/syncSend a message, get a complete response
POST/taskStart a background task
GET/task/:idGet task status
GET/task/:id/streamStream task output
GET/sessions/historyList sessions
GET/sessions/history/:idGet session history
GET/inspect/contextView compiled context with token counts
GET/api/eventsRuntime event bus (SSE)
GET/healthHealth check

SSE Events

The chat endpoint returns a Server-Sent Events stream with these event types:

EventDescription
initSession created or resumed
text_deltaIncremental text output from the LLM
tool_call_startTool execution beginning
tool_call_resultTool execution complete
subagent_eventTask agent activity
skill_activatedSkill activation
widgetWidget rendered inline
confirmation_requiredWrite operation needs approval
errorError occurred
doneResponse complete

See Runtime Server for the full event reference.

Hot Reload

Edit any config file and the runtime picks up changes immediately:

  • Connection specs, skills, knowledge, tools, automations
  • Config changes (provider, model, etc.)
  • No server restart needed