Claude Code {{ claude.state | replace("_", " ") }}

{% if claude.state == "signed_in" %}

Signed in{% if claude.auth_method %} (method: {{ claude.auth_method }}){% endif %}. Auto-apply can use this engine.

{% elif claude.state == "signed_out" %}

Claude Code is installed, but not signed in{% if claude.error %} — {{ claude.error }}{% endif %}.

{% if timed_out %}

Still not signed in after {{ login_timeout_min }} minutes. Check your browser window for the sign-in tab — it may still be open — then check again here.

{% endif %} {% if login_url %} {# Headless path: the spawned CLI printed its OAuth URL — offer it here. #}

No browser window opened? Open {{ login_url }} to finish signing in — this page picks it up automatically.

{% endif %}
{% if login_started and not timed_out %} Waiting for you to finish in the browser window… {% else %}
{% endif %} {% if timed_out %} {% endif %} Use my AI provider instead
{% else %}

Claude Code isn't available on this machine yet — it's the default auto-apply engine. You can still run everything through your own AI provider.

{% endif %}

Factory Droid {{ {'not_installed': 'not installed', 'signed_out': 'key missing', 'signed_in': 'ready'}[droid.state] }}

{% if droid.state == "signed_in" %}

Ready — your Factory API key is saved. The Droid engine can auto-apply.

{% elif droid.state == "signed_out" %}

Droid is installed, but its API key is missing. Droid has no browser sign-in — paste your Factory API key below (generate one from the Factory settings page) and this card flips to ready without a restart.

{% else %}

Droid isn't available on this machine — and that's fine: you only need it if you prefer it over Claude Code. Your own AI provider runs everything in the meantime.

{% endif %}