lkr-core 0.1.0

Core library for LLM Key Ring — secure LLM API key management via macOS Keychain
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub mod error;
pub mod keymanager;
pub mod template;
pub mod usage;

pub use error::{Error, Result};
pub use keymanager::{KeyEntry, KeyKind, KeyStore, KeychainStore, mask_value};
pub use template::{GenResult, Resolution, check_gitignore, generate, key_to_env_var};
pub use usage::{
    CostLineItem, CostReport, UsageCache, available_providers, fetch_cost, format_cost,
};
pub use zeroize::Zeroizing;

/// Keychain service name — shared across all frontends.
/// NEVER change this value once keys are stored.
pub const SERVICE_NAME: &str = "com.llm-key-ring";