INNER CODE UNIT · Python
codex_authed
browser-use/bux · agent/box_agent.py:287
just keeps codex_authed=false until the user installs / signs in.
The free DeepSeek path short-circuits this: it has no login, so an
active `browser-use-free` profile counts as authed.
"""
if _codex_free_profile_active():
return True
try:
proc = await asyncio.create_subprocess_exec(
CODEX_BIN,
'login',
'status',
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.STDOUT,
env={**os.environ, 'HOME': '/home/bux'},
)
except Exception:
return False