DB Claude Bridge
A lightweight bridge that lets the Claude Code CLI authenticate and run through Databricks Foundation Models using Databricks OAuth.
This lightweight bridge provides seamless integration between Claude Code CLI and Databricks Foundation Models, handling Databricks OAuth authentication automatically so you can focus on using powerful language models.
Installation
pip install db-claude-bridge
Quick Start
Setup
# Authenticate with Databricks OAuth to enable Claude Code CLI access to Foundation Models
db-claude-bridge login
Usage
# Run Claude Code CLI through Databricks Foundation Models
db-claude-bridge
# Quick responses through Foundation Models
db-claude-bridge --print "What is Python?"
# Check Claude Code CLI and Databricks OAuth status
db-claude-bridge status
How it Works
This lightweight bridge handles Databricks OAuth authentication and configures Claude Code CLI to run through Databricks Foundation Models. Simply authenticate once with your Databricks workspace, and the bridge automatically manages OAuth tokens, enabling Claude Code CLI to seamlessly access Foundation Models hosted on Databricks.
Configuration
The bridge stores configuration in:
~/.db-claude-bridge/config.json- Bridge settings and OAuth tokens~/.claude/settings.json- Claude Code CLI config (managed automatically by the bridge)
Managing Configuration
# View current bridge configuration
db-claude-bridge config
# Update Databricks workspace URL
db-claude-bridge config --host https://your-workspace.databricks.com
# Reset bridge settings and OAuth tokens
db-claude-bridge config --reset
# Use different workspace for one session
db-claude-bridge --host https://your-workspace.databricks.com login
Commands
db-claude-bridge- Run Claude Code CLI through Databricks Foundation Modelsdb-claude-bridge login- Authenticate with Databricks OAuth for Foundation Models accessdb-claude-bridge logout- Clear OAuth authentication tokensdb-claude-bridge status- Check Claude Code CLI and Databricks OAuth statusdb-claude-bridge config- Manage bridge configuration and OAuth settings
Requirements
- Python 3.8+
- Claude Code CLI (automatically installed by the bridge if missing)
- Databricks workspace with Foundation Models access
Development
git clone https://github.com/ahdbilal/db-claude-bridge.git
cd db-claude-bridge
# Install in development mode
pip install -e ".[dev]"
# Run tests
pytest
# Code formatting
black src tests
isort src tests
Troubleshooting
OAuth authentication issues:
db-claude-bridge logout
db-claude-bridge login
Bridge configuration issues:
db-claude-bridge config --reset
Debug the bridge:
db-claude-bridge --debug status
License
Apache License 2.0 - see LICENSE file.
Metadata
Release files for db-claude-bridge 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| db_claude_bridge-0.1.1.tar.gz | 25.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| db_claude_bridge-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.8 kB
Release files / db_claude_bridge-0.1.1.tar.gz
| Download URL | db_claude_bridge-0.1.1.tar.gz |
|---|---|
| Size | 25.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b121f5f693fa8a38e38267128974707774db31b39a296dd41ff19c7372b9b500
|
|
BLAKE2b-256 checksum How to use checksums |
a1449f3043535dbfaed11a729e7cee19907503e395490338988622384567a5c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / db_claude_bridge-0.1.1-py3-none-any.whl
| Download URL | db_claude_bridge-0.1.1-py3-none-any.whl |
|---|---|
| Size | 20.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c85e54cac228f6169be5d734cd9e29b4ba331f0bfec1851ca8a3576475b269d
|
|
BLAKE2b-256 checksum How to use checksums |
42ac6c77705d6a959cfa5ccf9e895df3d40ba6c046e50139997e097f1533ba4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|