o402 0.1.0

OpenAI-compatible gateway, paid with x402.
Documentation
# O402

[![Crates.io][crates-badge]][crates-url]
[![Docs.rs][docs-badge]][docs-url]
[![CI][ci-badge]][ci-url]
[![License][license-badge]][license-url]
[![Rust][rust-badge]][rust-url]

[crates-badge]: https://img.shields.io/crates/v/o402.svg
[crates-url]: https://crates.io/crates/o402
[docs-badge]: https://img.shields.io/docsrs/o402.svg
[docs-url]: https://docs.rs/o402
[ci-badge]: https://github.com/qntx/o402/actions/workflows/ci.yml/badge.svg
[ci-url]: https://github.com/qntx/o402/actions/workflows/ci.yml
[license-badge]: https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg
[license-url]: LICENSE-MIT
[rust-badge]: https://img.shields.io/badge/rust-edition%202024-orange.svg
[rust-url]: https://doc.rust-lang.org/edition-guide/

**OpenAI-compatible HTTP gateway, paid with x402.**

`o402` is a Rust workspace for an OpenAI-compatible HTTP gateway that charges with the [x402](https://www.x402.org/) payment protocol.

```toml
o402 = { version = "0.1" }
```

See also [`r402`](https://github.com/qntx/r402) (x402 SDK) and [`facilitator`](https://github.com/qntx/facilitator) (x402 facilitator server).

## Crates

See **[`crates/README.md`](crates/README.md)** for the crate table and dependency graph.

## Contributing

See **[`CONTRIBUTING.md`](CONTRIBUTING.md)** for development setup, PR expectations, and the release checklist.

## Security

This library has **not** been independently audited. Use at your own risk.

See **[`SECURITY.md`](SECURITY.md)** for scope and reporting.

## License

Licensed under either of:

- Apache License, Version 2.0 ([LICENSE-APACHE]LICENSE-APACHE or <https://www.apache.org/licenses/LICENSE-2.0>)
- MIT License ([LICENSE-MIT]LICENSE-MIT or <https://opensource.org/licenses/MIT>)

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project shall be dual-licensed as above, without any additional terms or conditions.

---

<div align="center">

A **[QuantX](https://qntx.org)** open-source project.

<a href="https://qntx.org"><img alt="QuantX" width="369" src="https://raw.githubusercontent.com/qntx/.github/main/profile/qntx.svg" /></a>

Code is law. We write both.

</div>