SaveToken is a native macOS chat app for local language models. It connects
to Ollama on 127.0.0.1:11434 or to the optional SaveToken MLX server on
127.0.0.1:8321. The app contains no model weights, telemetry, advertising,
or prompt logging.
Version 0.6.2 is a development preview for macOS 13 or later. The downloadable app is ad-hoc signed because this project does not yet have an Apple Developer ID certificate or notarization ticket. macOS may show an unidentified-developer warning. The source, automated tests, release manifest, and SHA-256 checksum are public; see the Releases page.
- Install and start Ollama from its official distribution.
- Download a chat-capable model with Ollama. Embedding-only models are hidden from SaveToken's chat picker.
- Open SaveToken, choose Ollama, press Refresh, and select the model.
- Enter a message. Local model responses stream from the Ollama process on this Mac.
Models whose tags end in :cloud or -cloud are clearly labeled CLOUD. Those models may send
prompts to an Ollama remote service even though SaveToken itself connects only
to the local Ollama daemon. Choose a model without :cloud for local inference.
Every completed assistant reply has controls to speak it or export it as a WAV file. SaveToken uses voices installed in macOS through AVFoundation; text and generated audio stay on the Mac. In Settings → On-device speech you can choose a voice, adjust its speed, test it, or enable automatic reading of new replies. This feature does not send text to a TTS API and does not require microphone permission.
Use Attach to select one or more files, or drag them into the message box. SaveToken reads text files and PDFs locally and includes their text in the prompt. Images are sent as local Base64 image inputs to Ollama and require a vision-capable model. The SaveToken MLX backend currently accepts text and text-file/PDF contents, but not image inputs. Unsupported binary files are rejected instead of uploaded or stored.
Expand Settings and enable Search the web before answering when current information is needed. SaveToken queries DuckDuckGo Instant Answers and adds the returned text and source URLs to the local model context. It is disabled by default; enabling it means the prompt is sent to DuckDuckGo, while the model request still goes to the selected Ollama or SaveToken endpoint.
Requirements: macOS 13+, Xcode command-line tools, and Swift 5.9 or later.
git clone https://github.com/kdahab2000/savetoken.git
cd savetoken/FreeTokenApp
swift test --scratch-path "${TMPDIR%/}/SaveToken-build"
SCRATCH_PATH="${TMPDIR%/}/SaveToken-build" sh package_app.sh
sh tools/sign_app.sh ad-hoc
open dist/SaveToken.appThe build script packages only the Swift executable and icon. It does not copy Ollama models, MLX model weights, SSH configuration, conversations, or local settings into the app.
SaveToken can use named aliases from your existing ~/.ssh/config:
- SSH is disabled for model requests by default.
- Raw hosts are rejected; only configured aliases are offered.
- Passwords and private-key contents never enter SaveToken.
- Every model-requested command pauses at a dialog showing the alias and exact command. Nothing runs until you approve it.
- Password-only hosts, interactive TTY programs, and hidden
sudoprompts are unsupported.
For ordinary chat, leave Allow Ollama model to request SSH off. When it is enabled, only prompts with clear server/SSH intent use the approval-gated tool path; ordinary prompts keep the faster streaming path.
The Python backend is intended for advanced Apple-Silicon development and requires separately obtained MLX model weights. No weights are in this repository or its releases. See freetoken/README.md.
- SaveToken's HTTP client constructs loopback URLs only.
- Local Ollama and SaveToken MLX prompts stay on the Mac. Ollama cloud-tagged models are the explicit exception and are labeled as remote.
- SaveToken stores UI preferences in
~/Library/Application Support/SaveToken/settings.json. - Chat transcripts are not persisted by SaveToken.
- Speech uses installed macOS voices locally; exported WAV files go only to the location selected by the user.
- Attachments are read locally; image data is sent only to the selected local Ollama endpoint when an image-capable model is selected. Attachments are not persisted by SaveToken after the request.
- Model output and requested shell commands are untrusted; review them before use.
FreeTokenApp/— SwiftUI app, tests, packaging, icon, signing helpers.freetoken/— optional localhost-only MLX backend and model manager..github/workflows/test-and-release.yml— clean macOS build and test job.SECURITY.md— threat model and vulnerability reporting.CONTRIBUTING.md— development and artifact rules.CHANGELOG.md— release history.
SaveToken is research and development software. It is not for clinical diagnosis or treatment.