Home/Cloak/Docs

Cloak icon

Cloak

Move cloud AI to your Mac.

Cloak finds supported cloud AI jobs, tests them locally, and moves safe jobs local-first with cloud fallback.

Python, JavaScript, and TypeScript. OpenAI and Claude.

Install

Free · Apple silicon · macOS 14+

Terminal Running locally · No network
$ cloak exampleCreated cloak-example-chat. Try it:   cd cloak-example-chat  python3 chat.py$ cd cloak-example-chat$ python3 chat.pyCloak Example Chat OpenAI key: not set/clear starts over, /quit leaves. You: What is the capital of Italy? This chat currently uses OpenAI. OPENAI_API_KEY is not set, so it cannot answer yet. Run:   cloak to see whether Cloak can move the chat local.$ cloakFound 1 cloud AI job in this project. Testing it locally with Cloak... Local result:  The capital of Italy is Rome. 0.7 s · Gemma 3 1B · fully local Move this chat local? Cloud stays the fallback. [y/N] y Moved local. Run:  python3 chat.py$ python3 chat.pyCloak Example Chat OpenAI key: not set/clear starts over, /quit leaves. You: What’s the capital of Greece?AI: The capital of Greece is Athens. You: woahAI: That’s right! Athens is the capital city of Greece. You: what did I ask you?AI: You asked me what the capital of Greece is!

Try Cloak on an example

Create a sample OpenAI chat:

cloak example
cd cloak-example-chat
python3 chat.py

Without an OpenAI key, run:

cloak

Approve the move, then run it again:

python3 chat.py

Use Cloak

In your own project:

cd your-project
cloak

That’s it.

What Cloak does

Cloak finds supported cloud AI jobs, tests them locally, and moves safe jobs local-first. The cloud call remains as fallback.

Before

your software
↓
OpenAI or Claude

After

your software
↓
Cloak
↓
local model
↓
cloud fallback

How Cloak chooses a local model

Cloak chooses a supported model for the job and your Mac.

What “move it local” means

Cloak checks inputs, outputs, and surrounding code. Safe jobs try local first and keep the cloud fallback; unsafe jobs are unchanged.

What Cloak handles for you

Cloak traces the call, chooses a model, rewrites the integration, adds fallback, and tests the result.

Current compatibility

Languages
Python · JavaScript · TypeScript
Cloud providers
OpenAI · Claude
Shared workflow
Detection · Local testing · Automatic migration for supported jobs

Version 0.5.1 is verified end to end across every combination above.

All adapters share one workflow. Unsafe migrations are refused.

Runs on your Mac

Cloak downloads and verifies each model once. Later inference stays local.

Advanced commands
cloak setup
cloak doctor
cloak init

setup prepares models, doctor checks readiness, and init prepares project inspection.

Commercial use permitted. License details →

Redistribution, sublicensing, and resale of Cloak CLI or Brain are not permitted without Polyaura LLC’s prior written permission. Third-party components, including llama.cpp and the Gemma model, remain subject to their own licenses and terms. The full terms are in the LICENSE file that installs with Cloak CLI.