CAJAL-4B-P2PCLAW — Native Python Integration
🧠 One-line install: pip install cajal
CAJAL-4B is a specialized scientific intelligence model fine-tuned for decentralized research networks, peer-to-peer architectures, cryptographic protocols, and formal verification. This package provides native Python integration, a FastAPI server, CLI tool, and configs for 10+ platforms.
Quick Start
1. Install
pip install cajal
2. Chat in Python
from cajal import CAJALChat
chat = CAJALChat()
response = chat.send("Explain Byzantine consensus in P2P networks.")
print(response)
3. Run Server (OpenAI-compatible)
cajal-server --port 8000
# Endpoint: POST /v1/chat/completions
4. CLI Chat
cajal "Explain zero-knowledge proofs"
# Or interactive mode:
cajal -i
Ollama Integration (Recommended)
# Pull the model
ollama pull Agnuxo/CAJAL-4B-P2PCLAW
# Create custom model with system prompt
ollama create cajal -f Modelfile
# Run
ollama run cajal
Platform Integrations
| Platform | Config | Status |
|---|---|---|
| Ollama | integrations/ollama/Modelfile |
✅ Ready |
| VS Code | integrations/vscode/cajal.json |
✅ Ready |
| Cursor | integrations/cursor/cajal.json |
✅ Ready |
| Continue.dev | integrations/continue_dev/config.yaml |
✅ Ready |
| Open WebUI | integrations/openwebui/README.md |
✅ Ready |
| Jan | integrations/jan/model.json |
✅ Ready |
| LM Studio | integrations/lmstudio/README.md |
✅ Ready |
| Pinokio | integrations/pinokio/install.json |
✅ Ready |
Model Info
- Base: Qwen3.5-4B (Apache 2.0)
- Fine-tuned: 4.21B parameters
- Context: 262K tokens
- Format: Safetensors BF16
- License: MIT
- HF: Agnuxo/CAJAL-4B-P2PCLAW
Requirements
- Python 3.9+
- PyTorch 2.2+
- Transformers 4.40+
- GPU recommended (6.5GB VRAM minimum)
License
MIT — Francisco Angulo de Lafuente (Agnuxo1)
Copyright 2026 P2PCLAW Laboratory
Metadata
Release files for cajal-p2pclaw 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cajal_p2pclaw-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for cajal_p2pclaw-1.0.0-py3-none-any.whl |
Release files / cajal_p2pclaw-1.0.0-py3-none-any.whl
| Download URL | cajal_p2pclaw-1.0.0-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b175d859ecf21b7d1e61950baf3898e445df517f4c250fb7c075968e3d4e0841
|
|
BLAKE2b-256 checksum How to use checksums |
bc832020ae8d8abc2498caa3cbf8cb32a95b75b629e8f11b393e17c50e0ec18d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for cajal-p2pclaw 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.