Metadata-Version: 2.5
Name: ya-oauth
Version: 1.21.0
Summary: OAuth login, refresh, storage, and CLI for YA model providers
Project-URL: Repository, https://github.com/wh1isper/ya-mono
Author-email: wh1isper <jizhongsheng957@gmail.com>
Keywords: agents,ai,oauth
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: <3.14,>=3.11
Requires-Dist: click>=8.0
Requires-Dist: httpx2>=2.5.0
Requires-Dist: pydantic>=2.12.0
Description-Content-Type: text/markdown

# ya-oauth

OAuth login, refresh, logout, token storage, and CLI for YA model providers.

## Codex login

```bash
ya-oauth login codex
ya-oauth status codex
ya-oauth refresh codex
```

`ya-oauth login codex` follows the OpenAI Codex device-code flow and preserves Codex
token refresh semantics.

Credentials are stored in `~/.yaai/auth.json`. The store uses process-safe locking and
atomic replacement, creates its directory with mode `0700`, and writes the credential
file with mode `0600`.
