BoltAI Blog
BoltAI HomepageBlogDocumentation
  • BoltAI Blog
  • What is ChatGPT o1? Understanding Its Features, Benefits, and Uses
  • Claude 3.5 Sonnet vs GPT-4o: A Comprehensive Comparison
  • ChatGPT API Cost: Features, Plans, Pros and Cons
  • How to Use ChatGPT API: A Comprehensive Guide
  • Top AI Tools for Developers: Boost Productivity and Code Smarter
  • How to Run LLM Locally on Mac: A Step-by-Step Guide
  • How to Use ChatGPT as a Search Engine: A Complete Guide
  • ChatGPT vs Claude: Which AI Tool Fits Your Needs?
  • ChatGPT vs Gemini: Which AI Tool Is Right For You?
  • Perplexity vs. ChatGPT: Our In-Depth Comparison
  • How to Train ChatGPT on Your Own Data: Enhance AI Accuracy & Relevance
  • DeepSeek vs. ChatGPT: Which AI Model Is Right for You?
  • Exploring the Top 10 ChatGPT Alternatives for Better AI Conversations in 2025
  • Top 7 AI Tools for Students to Boost Productivity and Success in 2025
  • How to Get a ChatGPT API Key: Step-by-Step Guide
  • Tech Stack Analysis for a Cross-Platform Offline-First AI Chat Client
  • BoltAI Projects, DeepSeek support and more
  • A Developer’s Guide to Bard vs. ChatGPT for Coding
  • ChatGPT Keyboard Shortcuts for Mac: Enhance Your Workflow with Quick Commands
  • ChatGPT for Programmers: How to Boost Productivity and Efficiency
  • Here’s Our Step-by-Step Guide on How to Use Mistral 7B
  • Claude vs. ChatGPT for Coding: Which AI Assistant is Best for You?
  • Amazon Bedrock & xAI support, cache breakpoint and more
  • Advanced Voice Mode, Improved Document Analysis and more
  • How to use local Whisper instance in BoltAI
  • Optimize Ollama Models for BoltAI
  • How to use xAI in BoltAI?
  • How BoltAI handles your API keys
  • How to build an AI Coding Assistant with BoltAI
  • Best Black Friday Deals 2024 for Mac
  • A simple A/B testing setup with Simple Analytics
Powered by GitBook
On this page
  • Bring your own keys
  • What is Keychain Access?
  • How BoltAI uses Apple Keychain?
  • And that's it

Was this helpful?

How BoltAI handles your API keys

PreviousHow to use xAI in BoltAI?NextHow to build an AI Coding Assistant with BoltAI

Last updated 7 months ago

Was this helpful?

I take security & privacy very seriously when building BoltAI. In this blog post, I wanted to share more on how BoltAI handles your API keys and other credentials.

TL;DR:

  • BoltAI stores your OpenAI API key securely in Apple Keychain.

  • BoltAI encrypts other API keys using an encryption key. This key is stored securely in Apple Keychain.

  • BoltAI sends requests directly to your AI service providers. There is no intermediate server.

Bring your own keys

Unlike other AI apps where you pay a subscription to use their AI services, BoltAI allows you to bring-your-own-keys (BOYK). This approach brings multiple benefits:

  • You pay for what you use.

  • Your requests are sent directly to the AI services, making it a lot faster.

  • Avoid . You can continue to use BoltAI even if my server is down.

  • Protect your privacy. Your chats are not being routed to an intermediate server.

But it also raise a concern: are your API keys protected from malicious scripts and unauthorized access?

A simple solution: Keychain.

What is Keychain Access?

If you're not familiar with Apple Keychain, it's is a password management system used in Apple’s macOS and iOS operating systems. It securely stores and manages passwords, encryption keys, certificates, and sensitive data for applications and websites.

Unlike a file-based storage like a SQLite database, all data stored in the Keychain is encrypted using strong encryption algorithms (AES-256). Only authorized apps or services can decrypt and access the stored data.

On macOS, you can access it with Keychain Access. Search for it in Spotlight and look for entries created by BoltAI.

Sounds great, right?

How BoltAI uses Apple Keychain?

BoltAI persists your OpenAI API key directly to the Keychain and other API keys on the SQLite database, encrypted. The ecryption key is stored securely in Keychain.

You may ask, why not store all of the API keys on Keychain?

The answer is, it's better for user experience. Let me explain.

When you upgrade your OS, or when you use multiple versions of BoltAI. There is a high chance that macOS would ask your password every time you use BoltAI. It would not a problem if it only ask once. But for some reasons, macOS ask your same password for every single password entry in Keychain.

If you have 10 API keys configured, you will need to enter the password 10 times. It's super annoying.

And that's it

I've been trying to write more help guides, tips and tricks using BoltAI. If you want to learn more about any topic, please let me know.

Thanks for your continued support 👋

single point of failure
Keychain Access