Skip to content

Commit cd0c16c

Browse files
Antonio Noelclaude
authored andcommitted
feat: add OpenClaw integration with secure gateway injection
- WebSocket RPC client for authenticated config injection - Keychain-based device pairing with gateway token - Multi-provider LM config exporter (Codex, Ollama, Claude, Gemini) - LM Hub UI with fallback editor and Ollama control panel - New providers: Ollama Cloud, Ollama LAN, HTTPS LM - Setup guide, client connection guide, third-party dev guide Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3fe9d0c commit cd0c16c

14 files changed

Lines changed: 3276 additions & 0 deletions

Sources/CodexBar/PreferencesLMManagementPane.swift

Lines changed: 1157 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import CodexBarCore
2+
import Foundation
3+
4+
struct HttpsLMProviderImplementation: ProviderImplementation {
5+
let id: UsageProvider = .httpsLM
6+
7+
@MainActor
8+
func presentation(context _: ProviderPresentationContext) -> ProviderPresentation {
9+
ProviderPresentation { _ in "https-api" }
10+
}
11+
12+
@MainActor
13+
func observeSettings(_: SettingsStore) {}
14+
15+
@MainActor
16+
func isAvailable(context _: ProviderAvailabilityContext) -> Bool {
17+
true
18+
}
19+
20+
@MainActor
21+
func settingsFields(context _: ProviderSettingsContext) -> [ProviderSettingsFieldDescriptor] {
22+
[]
23+
}
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import CodexBarCore
2+
import Foundation
3+
4+
struct OllamaCloudProviderImplementation: ProviderImplementation {
5+
let id: UsageProvider = .ollamaCloud
6+
7+
@MainActor
8+
func presentation(context _: ProviderPresentationContext) -> ProviderPresentation {
9+
ProviderPresentation { _ in "cloud-api" }
10+
}
11+
12+
@MainActor
13+
func observeSettings(_: SettingsStore) {}
14+
15+
@MainActor
16+
func isAvailable(context _: ProviderAvailabilityContext) -> Bool {
17+
true
18+
}
19+
20+
@MainActor
21+
func settingsFields(context _: ProviderSettingsContext) -> [ProviderSettingsFieldDescriptor] {
22+
[]
23+
}
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import CodexBarCore
2+
import Foundation
3+
4+
struct OllamaLANProviderImplementation: ProviderImplementation {
5+
let id: UsageProvider = .ollamaLAN
6+
7+
@MainActor
8+
func presentation(context _: ProviderPresentationContext) -> ProviderPresentation {
9+
ProviderPresentation { _ in "lan-api" }
10+
}
11+
12+
@MainActor
13+
func observeSettings(_: SettingsStore) {}
14+
15+
@MainActor
16+
func isAvailable(context _: ProviderAvailabilityContext) -> Bool {
17+
true
18+
}
19+
20+
@MainActor
21+
func settingsFields(context _: ProviderSettingsContext) -> [ProviderSettingsFieldDescriptor] {
22+
[]
23+
}
24+
}

0 commit comments

Comments
 (0)