TX021

Invalid proxy target

Console

Text.js error TX021: Use an HTTP(S) server origin without credentials for --target or OPENCODE_SERVER_URL.

Why this happens

--target (or OPENCODE_SERVER_URL) must be a bare HTTP(S) origin. It contained a path, query, hash or credentials. Credentials in URLs end up in logs and browser history.

How to fix it

# Beforetext proxy --target http://user:pass@127.0.0.1:4096/api# Aftertext proxy --target http://127.0.0.1:4096

Set the server password with OPENCODE_PASSWORD instead.