English · Português
Open-source fintech platform for building digital banks and payment institutions — microservices for accounts, PIX, cards, boleto, wire transfers (TED/DOC), loans, KYC, compliance and LGPD, with web, admin and mobile front-ends.
Built from more than 29 years of hands-on software development, with a focus on scalability, security and Brazilian regulatory requirements.
The platform is under active development. Some services are complete; others are scaffolds waiting for contributors.
| Status | Services |
|---|---|
| ✅ Implemented (domain logic, many endpoints) | pix · loans · card · wire (TED/DOC) · boleto · compliance · kyc · accounts · lgpd · audit · ai · api-gateway |
| 🧩 Early / scaffold (health check or a few endpoints) | payments · config · customer · statement · accounting · admin-api · affiliates · rewards · whatsapp · fx-crypto · simulators |
Good first contributions: pick a scaffold service and grow it with tests.
- Core banking: digital accounts, transfers (TED, PIX, P2P), statements, reconciliation.
- Payments: PIX (QR code, copy-and-paste), boleto, cards (credit/debit, 3-D Secure), payment split.
- Credit: loan products, scoring engine with AI assistance.
- Security:
- JWT/OIDC with Keycloak;
- MFA;
- tokenization of sensitive data;
- KMS/HSM integration;
- rate limiting;
- audit logs;
- outbox pattern.
- Compliance: KYC, AML / PLD-FT, LGPD service (consent, export, deletion), PCI-DSS guidelines.
- Infrastructure:
- FastAPI microservices;
- event-driven (Kafka, RabbitMQ);
- Docker Compose and Helm charts;
- OpenTelemetry tracing and Prometheus metrics.
- Front-ends: React web client (40+ pages), admin web, React Native mobile.
┌──────────────────────────────────────────────────────────────┐
│ Web client (React) · Admin web (React) · Mobile (RN) │
└───────────────────────────────┬──────────────────────────────┘
▼
┌───────────────────────────────┐
│ API Gateway (FastAPI+Keycloak)│
└───────────────┬───────────────┘
┌───────────────────────────────┴──────────────────────────────┐
│ accounts · pix · card · payments · loans · boleto · kyc │
│ compliance · lgpd · audit · rewards · fx-crypto · customer │
│ accounting · statement · wire · whatsapp · affiliates · ai │
│ admin-api · config · simulators │
└───────────────────────────────┬──────────────────────────────┘
PostgreSQL · Redis · Kafka · RabbitMQ
| Layer | Technologies |
|---|---|
| Backend | Python 3.11+, FastAPI, SQLAlchemy, Pydantic |
| Front-end | React 18, TypeScript, Vite, React Native |
| Auth | Keycloak 26, OAuth2/OIDC, JWT |
| Messaging | Apache Kafka, RabbitMQ |
| Data | PostgreSQL 15, Redis 7 |
| Infra | Docker, Kubernetes (Helm), Nginx, Traefik |
| CI | GitHub Actions: ruff, unit tests, Docker build of every service, Trivy |
Requirements: Docker with Docker Compose. Node.js 18+ only if you work on the front-ends outside Docker.
git clone https://github.com/Jeffersonpl/athena-pay.git
cd athena-pay
cp .env.example .env
docker compose -f docker-compose.dev.yml up -d --build| URL | |
|---|---|
| Web client | http://localhost:5174 |
| Admin | http://localhost:5173 |
| API gateway | http://localhost:8080 |
| Keycloak | http://localhost:8081 |
Development-only Keycloak users: admin1 / Passw0rd! (roles cto, user) and user1 / Passw0rd! (user).
Change them before exposing anything.
Checks:
ruff check services tests
pytest tests/unit
pytest tests/integration # with the stack running| Document | |
|---|---|
| Setup | Installation and configuration |
| Architecture, C4 model, DDD | Design decisions |
| API (OpenAPI) | Per-service API reference |
| Security, PCI / LGPD / COAF, audit | Security practices |
| Production guide, staging checklist | Operations |
Most documents are in Portuguese.
Dual licensing.
- Open source: AGPL-3.0.
- You may study, use, modify and distribute the code.
- If you run a modified version as a network service (SaaS), you must publish its source code under AGPL-3.0.
- Keep the copyright notices.
- Commercial license. Use Athena Pay in a closed-source product, for example in production fintechs, white-label or commercial SaaS, without the AGPL obligations. Contact jefferson@jeffersonpl.dev.
This software is provided "as is", without warranty of any kind. By using it you acknowledge that:
- Regulatory compliance is your sole responsibility. This includes the Brazilian Central Bank (BACEN), LGPD, PCI-DSS, AML/CFT (PLD/FT) and any other rules in your jurisdiction.
- Operating a financial or payment institution requires licenses. This software grants none.
- Bank integrations require more than this code. PIX, TED and the Brazilian payment system (SPB) need Central Bank certification, valid digital certificates and contracts with participating institutions.
- You are responsible for security, data protection, audits and keeping the software up to date.
- The authors are not liable for financial losses, data leaks, misuse, regulatory fines or any direct or indirect damage.
Before production you must:
- run a full security audit and a penetration test;
- get specialized legal advice;
- obtain the required BACEN licenses;
- set up backup, disaster recovery and incident management;
- consider liability insurance.
Contributions are welcome. Read CONTRIBUTING.md, CODE_OF_CONDUCT.md and SECURITY.md. Report vulnerabilities privately, never in a public issue.
Open Banking Brasil · investments module · CIP integration · FX module · mobile app · analytics dashboard · growing the scaffold services listed above.
Jefferson Pereira:
Plataforma fintech open source para criar bancos digitais e instituições de pagamento. São microsserviços de:
- contas e PIX;
- cartões e boleto;
- TED/DOC;
- empréstimos;
- KYC, compliance e LGPD.
Inclui também front-ends web, admin e mobile.
O projeto nasceu de mais de 29 anos de experiência prática em desenvolvimento de software, com foco em escala, segurança e regulação brasileira.
A plataforma está em desenvolvimento ativo. Alguns serviços estão completos; outros são esqueletos esperando contribuição.
| Situação | Serviços |
|---|---|
| ✅ Implementado (regra de negócio, várias rotas) | pix · loans · card · wire (TED/DOC) · boleto · compliance · kyc · accounts · lgpd · audit · ai · api-gateway |
| 🧩 Inicial / esqueleto (só health check ou poucas rotas) | payments · config · customer · statement · accounting · admin-api · affiliates · rewards · whatsapp · fx-crypto · simulators |
Boa primeira contribuição: escolha um serviço esqueleto e faça ele crescer, com testes.
- Core banking: contas digitais, transferências (TED, PIX, P2P), extrato, conciliação.
- Pagamentos: PIX (QR code, copia e cola), boleto, cartões (crédito/débito, 3-D Secure), split de pagamentos.
- Crédito: produtos de empréstimo e motor de score com apoio de IA.
- Segurança:
- JWT/OIDC com Keycloak;
- MFA;
- tokenização de dados sensíveis;
- integração com KMS/HSM;
- limite de requisições;
- logs de auditoria;
- padrão outbox.
- Compliance: KYC, PLD/FT, serviço de LGPD (consentimento, exportação, exclusão), diretrizes PCI-DSS.
- Infraestrutura:
- microsserviços FastAPI;
- arquitetura orientada a eventos (Kafka, RabbitMQ);
- Docker Compose e Helm;
- tracing OpenTelemetry e métricas Prometheus.
- Front-ends: web em React (40+ páginas), admin web e mobile em React Native.
Requisito: Docker com Docker Compose. Node.js 18+ só se for mexer nos front-ends fora do Docker.
git clone https://github.com/Jeffersonpl/athena-pay.git
cd athena-pay
cp .env.example .env
docker compose -f docker-compose.dev.yml up -d --buildEndereços:
- web: http://localhost:5174
- admin: http://localhost:5173
- API: http://localhost:8080
- Keycloak: http://localhost:8081
Usuários do Keycloak, só para desenvolvimento:
admin1/Passw0rd!, com os papéisctoeuser;user1/Passw0rd!, com o papeluser.
Troque-os antes de expor qualquer coisa.
Verificações:
ruff check services tests;pytest tests/unit;pytest tests/integration, com o ambiente no ar.
- Setup;
- Arquitetura, C4 e DDD;
- API por serviço e OpenAPI;
- Segurança, PCI / LGPD / COAF e auditoria;
- Guia de produção e checklist de homologação.
Licença dupla.
- Open source: AGPL-3.0.
- Pode estudar, usar, modificar e distribuir.
- Se rodar uma versão modificada como serviço (SaaS), precisa publicar o código-fonte sob AGPL-3.0.
- Mantenha os avisos de copyright.
- Licença comercial. Para usar o Athena Pay em produto de código fechado, sem as obrigações da AGPL: fintechs em produção, white-label ou SaaS comercial. Contato: jefferson@jeffersonpl.dev.
Este software é fornecido "como está", sem garantia de qualquer tipo. Ao usá-lo, você reconhece que:
- A conformidade regulatória é responsabilidade exclusivamente sua. Isso inclui o Banco Central (BACEN), a LGPD, o PCI-DSS, as normas de PLD/FT e demais regras da sua jurisdição.
- Operar instituição financeira ou de pagamento exige licenças. Este software não concede nenhuma.
- As integrações bancárias exigem mais do que este código. PIX, TED e o SPB exigem homologação no Banco Central, certificados digitais válidos e contratos com instituições participantes.
- A segurança é responsabilidade sua: proteção de dados, auditorias e atualização do software.
- Os autores não respondem por perdas financeiras, vazamento de dados, uso indevido, multas regulatórias ou danos diretos ou indiretos.
Antes de produção você deve:
- fazer auditoria de segurança completa e teste de invasão;
- contratar consultoria jurídica especializada;
- obter as licenças necessárias no BACEN;
- implementar backup, recuperação de desastres e gestão de incidentes;
- considerar um seguro de responsabilidade civil.
Contribuições são bem-vindas. Leia o CONTRIBUTING.md e o CODE_OF_CONDUCT.md. Vulnerabilidades devem ser reportadas em privado, conforme o SECURITY.md.
- Open Banking Brasil;
- módulo de investimentos;
- integração com a CIP;
- módulo de câmbio;
- app mobile;
- dashboard de análise;
- evolução dos serviços esqueleto.
Jefferson Pereira:
Feito com ❤️ para a comunidade fintech brasileira · Made with ❤️ for the Brazilian fintech community