ΩMEGA — Dev HUB

APIs • SDKs • Integração • Code Examples. Para Developers.

Por Que ΩMEGA Para Developers?

ΩMEGA transforma como você constrói com IA. Local-first, controlado por você, sem vendor lock-in.

Sem AWS/OpenAI Bills

Rode inference localmente. Economize 40-60% em custos de cloud. Pay /mês (Consumer) + seus recursos.

Controle Total

Dados nunca saem do seu PC (Lei 004). Seu modelo, sua versão, seu controle. Zero dependência de APIs externas.

< 100ms Latência

Local inference = responses instantâneos. Sem network overhead. Determinístico e previsível.

APIs Simples

REST API + Python SDK + Node.js SDK. Integra em 5 minutos. Documentação completa com exemplos.

Auditável

Lei 009: SHA-256 cada operação. Você verifica integridade localmente. Nenhuma "caixa preta" aqui.

Aprenda IA

Código aberto (GitHub). Lei enforcement em opcodes. Entenda como funciona por dentro.

Como Conectar ΩMEGA

1. REST API (HTTP)

Padrão. Qualquer linguagem. Qualquer plataforma.

Exemplo: POST /api/inference
curl -X POST http://localhost:9191/api/inference \ -H "Content-Type: application/json" \ -d '{ "prompt": "What is ΩMEGA?", "model": "llama-3.1-70b", "temperature": 0.7, "max_tokens": 256 }'

2. Python SDK

Integração mais natural. Recomendado para data science / ML.

Instalar:
pip install omega-sdk
Usar:
from omega import OmegaClient client = OmegaClient(url="http://localhost:9191") # Inference simples response = client.inference( prompt="Explain Compliance Policy 004", model="llama-3.1-70b", temperature=0.7 ) print(response.text) # Streaming for chunk in client.inference_stream(prompt="..."): print(chunk, end='', flush=True)

3. Node.js SDK

Para aplicações web. Integra com Next.js, React, etc.

Instalar:
npm install @omega/sdk
Usar:
import { OmegaClient } from '@omega/sdk'; const client = new OmegaClient({ baseURL: 'http://localhost:9191' }); // Inference const response = await client.inference({ prompt: 'Hello ΩMEGA', model: 'llama-3.1-70b', temperature: 0.7 }); console.log(response.text);

4. Docker / Kubernetes

Deploy em produção. Multi-node orchestration.

Docker Compose:
services: omega: image: omega:latest ports: - "9191:9191" environment: - MODEL=llama-3.1-70b - GPU=true - LEI_COMPLIANCE=verified volumes: - ./data:/omega/data

Integrações Nativas

FastAPI / Flask

Adicione ΩMEGA à sua API em minutos.

  • Middleware pré-built
  • Auth & rate limiting
  • Lei 009 audit logging
  • Error handling
Ver Docs

Next.js / React

Componentes React + servidor backend.

  • React hooks (useOmega)
  • SSR support
  • Streaming responses
  • Error boundaries
Ver Docs

LangChain

ΩMEGA como LLM provider.

  • Custom LLM class
  • Chains & agents
  • Memory modules
  • Tool integration
Ver Docs

Jupyter / Colab

Notebooks com ΩMEGA local.

  • IPython magic (%omega)
  • Display rich outputs
  • Training pipelines
  • Visualization tools
Ver Docs

PostgreSQL / MongoDB

Salve resultados localmente.

  • ORM adapters
  • Query builders
  • Migrations
  • Lei 009 audit trail
Ver Docs

CI/CD (GitHub Actions)

Teste com ΩMEGA no pipeline.

  • Action pre-built
  • Caching models
  • Parallel inference
  • Lei compliance checks
Ver Docs

Casos de Uso (Com Código)

1. Local Chatbot (Python)

Chatbot rodando no seu PC. Sem dependências cloud.

from omega import OmegaClient import readline client = OmegaClient() conversation = [] while True: user_input = input("You: ") conversation.append({"role": "user", "content": user_input}) response = client.inference( messages=conversation, model="llama-3.1-70b" ) assistant_message = response.text conversation.append({"role": "assistant", "content": assistant_message}) print(f"ΩMEGA: {assistant_message}\n") print(f"[Lei 009 Audit: {response.audit_hash}]\n")

2. Batch Processing (Para Pesquisadores)

Processa 10K docs localmente. Sem enviar pra cloud.

from omega import OmegaClient import json client = OmegaClient() documents = json.load(open('research_data.json')) results = [] for doc in documents: analysis = client.inference( prompt=f"Analyze: {doc['text']}", model="llama-3.1-70b" ) results.append({ "doc_id": doc['id'], "analysis": analysis.text, "audit_hash": analysis.audit_hash # Lei 009 }) json.dump(results, open('results.json', 'w'))

3. Web App (Next.js)

Aplica web que fala com ΩMEGA backend.

// pages/api/chat.ts import { OmegaClient } from '@omega/sdk'; const client = new OmegaClient(); export default async function handler(req, res) { const { prompt } = req.body; const response = await client.inference({ prompt, model: 'llama-3.1-70b' }); // Lei 009: Audit trail console.log(`[Audit] ${response.auditHash}`); res.json({ text: response.text, auditHash: response.auditHash }); }

Quick Start (5 Minutos)

1

Instale ΩMEGA

pip install omega-sdk

2

Inicie o Runtime

omega start --model llama-3.1-70b

3

Escreva Código

Importe OmegaClient e comece.

4

Verifique Lei

Acesse http://localhost:9191/audit-trail para Lei 009.

Ver Documentação Completa

Documentação & Recursos

API Reference

Todos os endpoints com exemplos cURL.

Abrir

SDK Docs

Python, Node.js, Go. Completo com examples.

Abrir

Tutorials

Step-by-step guides para casos comuns.

Abrir

Politica Compliance Tech

Como Lei enforcement funciona em código.

Abrir

Deploy Guide

Production deployment (Docker, K8s, Cloud).

Abrir

Troubleshooting

FAQ técnico, logs, debugging.

Abrir

Community & Support

Discord

#dev-hub channel: Dúvidas técnicas, code review, best practices.

Entrar

GitHub Discussions

Perguntas, ideias, showcase de projetos.

Abrir

Email Support

Dúvidas técnicas: dev@omegast.pro

Enviar Email

Pronto pra Desenvolver?

30 dias grátis. APIs + SDKs prontos. Politica Compliance garantida.
Comece agora — código local, nenhuma dependência cloud.

Começar Free Trial Ver Quick Start