Flow 1
CLI agent loopback + PKCE
- 1
Agent binds 127.0.0.1 to an ephemeral port and generates PKCE.
- 2
Opens the system browser to the AS authorize URL.
- 3
User authenticates and consents. Redirect hits loopback with the code.
- 4
Agent exchanges code+verifier on the back channel. Stores tokens outside the model context.