Skip to main content

Crate codexia

Crate codexia 

Source
Expand description

Core library for codexia.

The library owns the OAuth flow, token lifecycle, upstream Codex client, HTTP server, and status inspection helpers used by both the CLI binary and any embedding integration.

Re-exports§

pub use error::Error;
pub use error::Result;

Modules§

anthropic
Anthropic-compatible Messages API request, response, and SSE adapters. Anthropic-compatible request, response, and streaming adapters.
codex
Codex upstream request/response adapters and streaming support.
config
Local credential storage, persisted runtime config, and time utilities.
daemon
Background service installation and lifecycle management.
error
Shared error types and result aliases.
logging
Logging configuration and helpers.
models
Model list resolution from the built-in defaults.
oauth
OAuth authorization, token exchange, and callback parsing.
openai
OpenAI-compatible public request and response types.
server
HTTP server entrypoints and route handlers. HTTP server state, router wiring, and endpoint tests.
status
Account and rate-limit status fetchers. Account and rate-limit status client.
timefmt
Shared time formatting helpers for CLI and HTTP output. Shared time formatting helpers for CLI and HTTP status output.
token
OAuth credential caching and refresh orchestration.