Skip to content

Add Authentication local LLM#16

Merged
ernestkoe merged 3 commits into
proofsh:mainfrom
Pushkinmazila2:main
May 13, 2026
Merged

Add Authentication local LLM#16
ernestkoe merged 3 commits into
proofsh:mainfrom
Pushkinmazila2:main

Conversation

@Pushkinmazila2
Copy link
Copy Markdown
Contributor

Description

This PR adds support for API Token authentication (Bearer Token) for the LM Studio provider.

Previously, if LM Studio had "Require Authentication" enabled, the tool would fail with a 401 Unauthorized error because there was no way to provide or pass an API key in the headers.

Changes:

  • Updated the setup wizard to prompt for an API Key when LM Studio is selected.
  • Added lmstudio_api_key to the configuration schema and config.toml.
  • Modified the Embedder and indexer logic to include the Authorization: Bearer <token> header in requests to the LM Studio API.
  • Updated the CLI search and index commands to correctly pass the token to the backend.

Motivation and Context

Fixes an issue where users couldn't use the tool with secured LM Studio instances.
Error addressed: httpx.HTTPStatusError: Client error '401 Unauthorized' for url 'http://localhost:1234/v1/embeddings'

How Has This Been Tested?

  1. Enabled "Require Authentication" in LM Studio (Developers Page).
  2. Ran obsidian-notes-rag setup and provided the API Key.
  3. Successfully performed indexing using obsidian-notes-rag index.
  4. Verified that semantic search works via obsidian-notes-rag search "query".

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 4, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d1f58a67-8267-4498-84c5-6c0d898671e2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ernestkoe ernestkoe merged commit db86e39 into proofsh:main May 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants