pi-mono/packages/coding-agent/docs
Rafael 61da9e2f37
feat(ai): add manual redirect URL fallback to OpenRouter OAuth login (#7114)
The OpenRouter PKCE flow only completed through the loopback callback
server, so remote/headless sessions (e.g. pi over SSH) could never
finish login: the browser runs on another machine and cannot reach
127.0.0.1 on the host running pi.

Race the callback server against a manual_code prompt, matching the
existing Anthropic and OpenAI Codex flows. Users can paste the final
redirect URL (or the bare authorization code) and the flow exchanges
it with the same PKCE verifier. A claimed callback keeps priority so
a pasted code cannot interrupt an in-flight exchange.

The callback server object follows the OAuthServerInfo shape from the
OpenAI Codex flow: waitForCredential() resolves null when cancelWait()
hands the login over to manual entry, and close() is pure cleanup that
never settles the wait.

Refs #7078
2026-07-27 11:58:04 +02:00
..
images Add pi.dev donation attribution 2026-02-03 23:00:40 +01:00
compaction.md fix(agent,ai): don't cache write compaction or branch summaries (#6618) 2026-07-23 23:03:23 +02:00
containerization.md docs(coding-agent): reorder containerization patterns 2026-06-15 09:16:13 +02:00
custom-provider.md feat(ai): expose pending stop reason while streaming (#7151) 2026-07-27 11:56:15 +02:00
development.md docs(coding-agent): fix development AGENTS link 2026-05-27 22:51:30 +02:00
docs.json docs(coding-agent): document security model 2026-06-08 15:56:29 +02:00
environment-variables.md feat(coding-agent): expose session metadata to bash tools (#6967) 2026-07-22 20:15:02 +02:00
extensions.md feat(coding-agent): expose output padding to custom renderers (#7045) 2026-07-25 08:29:34 +02:00
index.md feat(coding-agent): expose session metadata to bash tools (#6967) 2026-07-22 20:15:02 +02:00
json.md add docs for new event types 2026-07-21 15:40:11 +00:00
keybindings.md feat(coding-agent): add message copy shortcut 2026-07-10 21:35:53 +02:00
llama-cpp.md feat(coding-agent): add Hugging Face llama search 2026-07-17 17:13:39 +02:00
models.md feat(ai): support constrained sampling (#6341) 2026-07-23 23:48:40 +02:00
packages.md feat(coding-agent): add model catalog refresh flag 2026-07-16 12:46:49 +02:00
prompt-templates.md fix(coding-agent): support all-argument prompt defaults closes #6695 2026-07-17 13:52:32 +02:00
providers.md feat(ai): add manual redirect URL fallback to OpenRouter OAuth login (#7114) 2026-07-27 11:58:04 +02:00
quickstart.md fix(coding-agent): fall back to text clipboard paste 2026-07-10 21:46:15 +02:00
rpc.md feat(coding-agent): emit bash_execution_update events (#6971) 2026-07-23 12:28:12 +02:00
sdk.md add docs for new event types 2026-07-21 15:40:11 +00:00
security.md docs(coding-agent): reorder containerization patterns 2026-06-15 09:16:13 +02:00
session-format.md feat(ai): expose pending stop reason while streaming (#7151) 2026-07-27 11:56:15 +02:00
sessions.md Add startup session name flag 2026-05-29 11:40:58 +02:00
settings.md fix(ai): make provider retries abortable (#6980) 2026-07-23 12:25:37 +02:00
shell-aliases.md docs(coding-agent): add windows.md and shell-aliases.md 2026-01-25 22:12:03 +01:00
skills.md feat(coding-agent): add project trust gating 2026-06-05 10:51:43 +02:00
terminal-setup.md fix(tui): bind ctrl+j as newline by default 2026-06-22 13:57:02 +02:00
termux.md docs: recommend scriptless npm installs 2026-05-20 14:47:18 +02:00
themes.md feat(ai): add max thinking level 2026-07-09 22:30:53 +02:00
tmux.md docs(coding-agent): update tmux requirement docs 2026-06-07 10:34:57 +02:00
tui.md docs(coding-agent): fix obsolete extension UI examples closes #6735 2026-07-17 09:36:59 +02:00
usage.md feat(coding-agent): expose session metadata to bash tools (#6967) 2026-07-22 20:15:02 +02:00
windows.md docs(coding-agent): add windows.md and shell-aliases.md 2026-01-25 22:12:03 +01:00