Skip to main content
If [directory] is omitted, DocWriter opens the current working directory.

Options

Environment variables

Flags take precedence over environment variables.

Examples

Open the current directory:
Open a specific project:
Open with a fresh agent session:
Live-reload when files change on disk (useful when editing in another editor too):
Expose to the local network (so you can edit from a tablet):
Force a specific port:
Use a specific model for this session:
Run without an auto-opened browser (useful in scripts / remote shells):

Auth precedence

DocWriter resolves credentials in this order:
  1. --api-key flag
  2. ANTHROPIC_API_KEY environment variable
  3. Credentials stored by claude login
If none of these are present, you see an authentication error when you try to start an agent turn. The file editor still works without authentication.