Skip to main content

Private AI with real-time maritime intelligence โ€” runs entirely on your hardware

Project description


language:

  • en license: mit tags:
  • llama
  • mlx
  • vllm
  • 4-bit
  • local-ai
  • private
  • maritime
  • vessel-tracking
  • osint library_name: mlx pipeline_tag: text-generation base_model: mistralai/Ministral-8B-Instruct-2410

๐Ÿง  Marziel AI โ€” v0.8.0

Private Local Intelligence โ€” runs entirely on your hardware.

One command to run your own AI โ€” works on any machine.

Marziel AI is a locally-powered AI assistant with real-time maritime intelligence, web search, browser automation, GitHub analysis, URL reading, code generation, and autonomous agent capabilities โ€” all without sending a single byte to the cloud.

Quick Install

pip install marziel
marziel serve

That's it. The right engine is auto-installed for your hardware. The first run downloads the model from Hugging Face. Everything is automatic.

Changelog

v0.8.0

  • v6 Model โ€” upgraded to Ministral-8B base with full fine-tune + LoRA merge
  • Professional code quality โ€” typed Python, async patterns, SQL builders, Result types
  • Web scraping โ€” Playwright, BeautifulSoup, rate limiting, PostgreSQL upserts, robots.txt
  • Agentic tool use โ€” multi-step reasoning, file analysis, autonomous task execution
  • GGUF Q4_K_M (4.8GB) + MLX 4-bit (4.5GB) on HuggingFace
  • HuggingFace model card with usage for GGUF, MLX, and safetensors
  • Install auto-detects OS and installs the correct backend

v0.7.0

  • v5 Model โ€” fine-tuned on 2,061 samples with new capabilities
  • Tool use โ€” web search, URL reading, code execution patterns
  • Advanced code โ€” decorators, REST APIs, TypeScript, CSS Grid/Flexbox
  • Math & reasoning โ€” calculus, combinatorics, Big O, statistics
  • Maritime expertise โ€” EEXI/CII, ballast water, P&I, charter types, chokepoints
  • Training: eval loss 0.4363, token accuracy 88.2%

v0.6.0

  • Auto-install semantic router โ€” semantic-router + fastembed installed automatically on first marziel serve
  • No more pip install marziel[router] โ€” everything works out of the box

v0.5.9

  • Semantic routing โ€” intent detection via vector similarity (~5ms), replaces brittle keyword matching
  • 8 intent routes โ€” chat, web_search, agent, browser, maritime, code, github, url
  • fastembed BGE-small โ€” local embeddings, no API calls, 95% routing accuracy
  • Graceful degradation โ€” falls back to keywords if semantic-router not installed
  • Install: pip install marziel[router] for semantic routing

v0.5.8

  • 3-tier inference โ€” Apple Silicon โ†’ MLX, NVIDIA GPU โ†’ vLLM, CPU โ†’ llama.cpp
  • llama.cpp for CPU โ€” uses same 4.9GB GGUF file as GPU, no more vLLM CPU format issues
  • Auto-install engines โ€” mlx-lm, vllm, or llama-cpp-python[server] detected + installed automatically
  • Chat-first UI โ€” opens directly to chat interface (no landing page)
  • Python 3.14 support โ€” tested on 3.10โ€“3.14
  • Works on any Linux โ€” Arch, Fedora, RHEL, Ubuntu, Debian + macOS + WSL

v0.5.7

  • CPU uses safetensors โ€” vLLM CPU loads model.safetensors from HF (GGUF not supported on CPU)
  • GPU uses GGUF โ€” faster local loading with quantized model
  • Fixed tokenizer โ€” PreTrainedTokenizerFast in HF tokenizer_config.json

v0.5.6

  • Clean install logic โ€” only installs vLLM if missing; detects GPU โ†’ CUDA, no GPU โ†’ CPU wheel
  • No forced uninstalls โ€” respects existing user environment

v0.5.5

  • Tokenizer fix โ€” --trust-remote-code for custom tokenizer loading
  • Clean CPU install โ€” auto-uninstalls CUDA vllm/torch before installing CPU wheel

v0.5.4

  • vLLM CPU pre-built wheel โ€” auto-installs vllm+cpu from GitHub releases on CPU-only machines
  • GPU auto-detects โ€” installs standard CUDA vLLM when NVIDIA GPU present
  • CPU optimized โ€” bfloat16 dtype, VLLM_CPU_KVCACHE_SPACE, TCMalloc, Intel OpenMP
  • 3-minute CPU timeout โ€” 180s for CPU model loading

v0.5.3

  • Fixed CPU device detection โ€” set VLLM_TARGET_DEVICE=cpu for machines without GPU
  • vLLM debug logging โ€” errors now saved to ~/.marziel/vllm.log

v0.5.2

  • Prefix caching โ€” system prompt KV cache reused across requests (faster responses)
  • 120s CPU timeout โ€” longer startup window for CPU-only machines loading 4.6GB model
  • All NVIDIA GPUs supported (GTX, RTX, Tesla, A100) โ€” auto-detected via nvidia-smi

v0.5.1

  • vLLM auto-installs โ€” no more manual pip install vllm, it's a declared dependency
  • 8GB RAM optimized โ€” reduced context to 2048 tokens, eager execution, swap-space fallback
  • Engine routing โ€” Apple Silicon โ†’ MLX, everything else โ†’ vLLM (CPU & GPU)

v0.5.0

  • Unified architecture: MLX (Apple Silicon) + vLLM (all other platforms)
  • GGUF Q4_K_M model for vLLM (~4.6 GB)
  • Auto-download model from Hugging Face
  • Zero-config: pip install marziel && marziel serve

What It Does

Feature Description
๐Ÿง  AI Chat Conversational AI with personality, code generation, data analysis
๐Ÿ“ก Maritime Intelligence Real-time GDACS, GDELT, NASA EONET, AIS, market data, bunker prices
๐Ÿ’ฐ Market Data Live Brent crude, BDI, EU Carbon, freight rates, forex, 12-port bunker prices
๐Ÿšข Vessel Integration AIS tracking, fleet management, voyage data, maintenance records
๐Ÿ”Œ Third-Party Connectors Plug in MarineTraffic, VesselFinder, Spire, Datalastic, or any REST API
๐Ÿ“Š Live Reports Generate comprehensive maritime intelligence reports on demand
๐Ÿ” Web Search Live internet results via DuckDuckGo โ€” always up-to-date answers
๐ŸŒ Browser Control Headless Chromium automation โ€” navigate, click, type, screenshot
๐Ÿ”— URL Analysis Share any link โ€” reads, extracts, and analyzes content
๐Ÿ™ GitHub Analysis Paste any repo URL โ€” get architecture, languages, README analysis
โšก Autonomous Agent Multi-step reasoning with bash, file, web, browser, and maritime tools
๐Ÿ”’ 100% Private Everything runs locally. Zero cloud dependency

Maritime Intelligence (Enterprise)

Marziel integrates real-time maritime data from multiple global sources:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                   MARZIEL MARITIME INTEL                   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  OSINT (Free APIs)         โ”‚  Platform Integration        โ”‚
โ”‚  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€         โ”‚  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€        โ”‚
โ”‚  ๐Ÿ“ก GDACS โ€” Disasters      โ”‚  ๐Ÿšข Fleet Vessels            โ”‚
โ”‚  ๐Ÿ“ฐ GDELT โ€” Geopolitics    โ”‚  ๐Ÿ—บ๏ธ  Active Voyages          โ”‚
โ”‚  ๐ŸŒ NASA EONET โ€” Climate   โ”‚  โš ๏ธ  Risk Zones              โ”‚
โ”‚  ๐Ÿ’ฐ Yahoo Finance โ€” Market โ”‚  ๐Ÿ—๏ธ  Maintenance             โ”‚
โ”‚  ๐Ÿ’ฑ ExchangeRate โ€” Forex   โ”‚  ๐Ÿ“‹ Incidents                โ”‚
โ”‚  ๐Ÿšข AISStream โ€” Tracking   โ”‚  โ›ฝ Fuel Records             โ”‚
โ”‚                            โ”‚  ๐Ÿญ Port Directory           โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Third-Party Connectors (Enterprise)                      โ”‚
โ”‚  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€                        โ”‚
โ”‚  MarineTraffic ยท VesselFinder ยท Spire Maritime            โ”‚
โ”‚  Datalastic ยท OpenWeather ยท Custom REST API               โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Market Data Sources

Data Source Update
Brent Crude Oil Yahoo Finance (BZ=F) Real-time
Bunker VLSFO/MGO/HSFO Brent-derived (12 ports) Real-time
Baltic Dry Index BDRY ETF ร— 200 Real-time
EU Carbon (EUA) KRBN ETF ร— 2.1 Real-time
Freight Rates DSX/GNK shipping stocks Real-time
Exchange Rates ExchangeRate API (9 currencies) Real-time

Third-Party Integration

Connect Marziel to any maritime service via ~/.marziel/connectors.json:

{
  "connectors": [
    {"type": "marinetraffic", "api_key": "YOUR_KEY"},
    {"type": "openweather", "api_key": "YOUR_KEY"},
    {
      "type": "custom",
      "name": "my_fleet",
      "base_url": "https://api.myfleet.com/v1",
      "api_key": "secret",
      "endpoints": {
        "vessels": "/ships",
        "voyages": "/trips",
        "weather": "/weather?lat={lat}&lon={lon}"
      }
    }
  ]
}

Maritime API Endpoints

GET  /api/maritime/report           โ€” Full intelligence report
GET  /api/maritime/data/market      โ€” Live market data
GET  /api/maritime/data/bunker      โ€” 12-port bunker prices
GET  /api/maritime/data/fx          โ€” Exchange rates
GET  /api/maritime/data/gdacs       โ€” Disaster events
GET  /api/maritime/data/gdelt       โ€” Geopolitical news
GET  /api/maritime/data/nasa        โ€” Natural events
GET  /api/maritime/data/ais         โ€” Vessel tracking
GET  /api/maritime/data/vessels     โ€” Fleet data
GET  /api/maritime/data/voyages     โ€” Voyage data
GET  /api/maritime/data/risk-zones  โ€” Active risk zones
GET  /api/maritime/data/ports       โ€” Port directory
GET  /api/maritime/connectors       โ€” List connectors
POST /api/maritime/connectors/query โ€” Query third-party services

Agent Tools

The LLM has access to 20+ tools:

Tool Purpose
bash Shell command execution
file_read / file_write File I/O
web_search DuckDuckGo search
browser Headless Chromium automation
maritime_report Full intelligence report
market_data Brent, BDI, Carbon, bunker, freight
gdacs Active disasters & cyclones
gdelt Geopolitical conflict news
nasa NASA EONET natural events
ais Live AIS vessel tracking
fleet Fleet vessel data
voyages Active voyage data
risk_zones Active risk zones
ports Global port directory
exchange_rates Live forex rates
maintenance Vessel maintenance records
incidents Maritime incident reports
fuel Fuel consumption data
port_calls Port call history

Requirements

  • RAM: 8GB minimum (16GB recommended)
  • Disk: ~5GB for the model
  • Python: 3.10โ€“3.14
  • Supported platforms:
Platform Engine Model Auto-installed
Apple Silicon (M1โ€“M4) MLX MLX 4-bit (4.5GB) mlx-lm
NVIDIA GPU (any) vLLM GGUF Q4_K_M (4.8GB) vllm
CPU (any x86/ARM) llama.cpp GGUF Q4_K_M (4.8GB) llama-cpp-python[server]
  • Linux: Ubuntu, Debian, Arch, Fedora, RHEL, Alpine โ€” any distro with glibc
  • macOS: Intel (llama.cpp) or Apple Silicon (MLX)
  • Windows: WSL2 recommended

Usage

# Install and start (basic)
pip install marziel
marziel serve

# With browser automation
pip install "marziel[browser]"
python -m playwright install chromium
marziel serve

# Check status
marziel status

# Show version
marziel version

Then open http://localhost:8001 โ€” your private AI dashboard.

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Browser (localhost:8001)                     โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚  Marziel Dashboard (React)            โ”‚   โ”‚
โ”‚  โ”‚  Dashboard ยท Chat ยท Settings          โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚                 โ”‚ API calls                    โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚  Marziel Backend (Flask+Gunicorn)     โ”‚   โ”‚
โ”‚  โ”‚  Agent ยท Search ยท Browser ยท Maritime  โ”‚   โ”‚
โ”‚  โ”‚  Billing ยท Connectors ยท Reports       โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ”‚         โ”‚       โ”‚       โ”‚                      โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ” โ”Œโ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ” โ”Œโ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚ LLM     โ”‚ โ”‚ OSINT โ”‚ โ”‚ Third-Party APIs   โ”‚  โ”‚
โ”‚  โ”‚ MLX     โ”‚ โ”‚ GDACS โ”‚ โ”‚ MarineTraffic      โ”‚  โ”‚
โ”‚  โ”‚ vLLM    โ”‚ โ”‚ GDELT โ”‚ โ”‚ VesselFinder       โ”‚  โ”‚
โ”‚  โ”‚ llama   โ”‚ โ”‚ NASA  โ”‚ โ”‚ Spire ยท Custom     โ”‚  โ”‚
โ”‚  โ”‚ .cpp    โ”‚ โ”‚ Yahoo โ”‚ โ”‚                    โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚                YOUR MACHINE                     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Pricing

Plan Price Features
Free โ‚ฌ0/mo AI Chat, Web Search, URL Analysis, GitHub Analysis
Pro โ‚ฌ20/mo + Agent Mode, Browser Control, Priority Inference
Enterprise โ‚ฌ199/mo + Maritime Intelligence, Connectors, Reports, Custom Fine-tuning

Links

Contact

๐Ÿ“ง info@efkan-isazade.com

License

MIT License


Built with โค๏ธ by Efe (Efkan Isazade)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

marziel-0.8.1.tar.gz (315.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

marziel-0.8.1-py3-none-any.whl (321.0 kB view details)

Uploaded Python 3

File details

Details for the file marziel-0.8.1.tar.gz.

File metadata

  • Download URL: marziel-0.8.1.tar.gz
  • Upload date:
  • Size: 315.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for marziel-0.8.1.tar.gz
Algorithm Hash digest
SHA256 b0d645cb4cff99203733c8761c75577a7b3a6d0fad4d203a16514f870e99d041
MD5 64f23fc64e0e6248bbf1a61441a60e72
BLAKE2b-256 bb807eb969cb073ffe5319debf7e6371e299087accd2f6616bb50cd0d300acf9

See more details on using hashes here.

File details

Details for the file marziel-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: marziel-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 321.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for marziel-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ff58b681691cf7d0fc8bf8e415bdd758d346babb5d0242e40d69f91144992f7
MD5 b5e297470166e737f4b19dbd47edd3ca
BLAKE2b-256 51f17111ae666ecbac53a9b4b07b03447a9144efff4af0a21e7ff5a6f2c7dbcb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page