Skip to content

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.

TypeScript

fix(keys): manage one key at a time instead of a whole provider (#705) (#709)

Tashfeenbcbbd26e9bc1
diff --git a/client/src/components/keys/add-key-form.tsx b/client/src/components/keys/add-key-form.tsx
index 606821ac..f88ffd7d 100644
--- a/client/src/components/keys/add-key-form.tsx
+++ b/client/src/components/keys/add-key-form.tsx
@@ -3,6 +3,7 @@ import { useMutation, useQueryClient } from '@tanstack/react-query'
import { apiFetch } from '@/lib/api'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
+import { Textarea } from '@/components/ui/textarea'
import { Label } from '@/components/ui/label'
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
import { FieldError } from '@/components/ui/field-error'
@@ -23,6 +24,11 @@ export function AddKeyForm({ onSuccess }: { onSuccess: () => void }) {
const [accountId, setAccountId] = useState('')
const [label, setLabel] = useState('')
const [addAttempted, setAddAttempted] = useState(false)
+ // Several credentials for one provider in one go (#705). Pooling keys is the
+ // point of this app, and the only bulk path was the file importer, so anyone
+ // holding five Groq keys reopened this dialog five times. Off by default: the
+ // single-key field masks what you type, and a textarea cannot.
+ const [several, setSeveral] = useState(false)
const addKey = useMutation({
meta: { silenceToast: true },
@@ -41,14 +47,42 @@ export function AddKeyForm({ onSuccess }: { onSuccess: () => void }) {
},
})
+ // Reuses the bulk endpoint the file importer already posts to, which dedupes
+ // against every stored key and reports per-key failures.
+ const addSeveral = useMutation({
+ meta: { silenceToast: true },
+ mutationFn: (body: { keys: { platform: string; keyName?: string; keyValue: string }[] }) =>
+ apiFetch<{ imported: number; total: number; errors: { key: string; error: string }[] }>(
+ '/api/keys/import-selected', { method: 'POST', body: JSON.stringify(body) },
+ ),
+ onSuccess: (data) => {
+ for (const key of ['keys', 'health', 'fallback']) {
+ queryClient.invalidateQueries({ queryKey: [key] })
+ }
+ toast.success(t('keys.importResult', { imported: data.imported, failed: data.total - data.imported }))
+ onSuccess()
+ },
+ })
+
const needsAccountId = platform === 'cloudflare'
const isKeyless = PLATFORMS.find(p => p.value === platform)?.keyless ?? false
+ // Cloudflare pairs each token with an account id, and keyless providers have
+ // nothing to paste, so neither can take a list.
+ const canPasteSeveral = !isKeyless && !needsAccountId
+ const severalMode = several && canPasteSeveral
+ // One per line or comma-separated, deduped, blanks dropped.
+ const keyList = severalMode
+ ? [...new Set(apiKey.split(/[\n,]+/).map(s => s.trim()).filter(Boolean))]
+ : []
// Field-level validation: the submit stays clickable and reveals what is
// missing instead of being silently disabled.
const platformError = !platform ? t('validation.required') : null
- const keyError = !isKeyless && !apiKey.trim() ? t('validation.required') : null
+ const keyError = severalMode
+ ? (keyList.length === 0 ? t('validation.required') : null)
+ : (!isKeyless && !apiKey.trim() ? t('validation.required') : null)
const accountIdError = needsAccountId && !accountId.trim() ? t('validation.required') : null
+ const pending = addKey.isPending || addSeveral.isPending
const handleSubmit = (e: React.FormEvent) => {
e.preventDefault()
@@ -57,6 +91,12 @@ export function AddKeyForm({ onSuccess }: { onSuccess: () => void }) {
return
}
setAddAttempted(false)
+ if (severalMode) {
+ addSeveral.mutate({
+ keys: keyList.map(keyValue => ({ platform, keyValue, keyName: label || undefined })),
+ })
+ return
+ }
// Keyless providers submit an empty key; the backend stores a sentinel.
const key = isKeyless ? '' : (needsAccountId ? `${accountId}:${apiKey}` : apiKey)
addKey.mutate({ platform, key, label: label || undefined })
@@ -97,16 +137,38 @@ export function AddKeyForm({ onSuccess }: { onSuccess: () => void }) {
</div>
)}
<div className="space-y-1.5 flex-1 min-w-[240px]">
- <Label className="text-xs">{needsAccountId ? t('keys.apiToken') : t('keys.customApiKey')}</Label>
- <Input
- type="password"
- value={isKeyless ? '' : apiKey}
- onChange={e => setApiKey(e.target.value)}
- placeholder={isKeyless ? t('keys.noKeyNeededPlaceholder') : (needsAccountId ? t('keys.bearerTokenPlaceholder') : t('keys.pasteKeyPlaceholder'))}
- className="font-mono text-xs"
- disabled={isKeyless}
- aria-invalid={addAttempted && !!keyError}
- />
+ <div className="flex items-center justify-between gap-2">
+ <Label className="text-xs">{needsAccountId ? t('keys.apiToken') : t('keys.customApiKey')}</Label>
+ {canPasteSeveral && (
+ <button
+ type="button"
+ onClick={() => setSeveral(v => !v)}
+ className={`text-[11px] underline-offset-2 hover:underline ${severalMode ? 'text-foreground' : 'text-muted-foreground hover:text-foreground'}`}
+ >
+ {t('keys.pasteSeveral')}
+ </button>
+ )}
+ </div>
+ {severalMode ? (
+ <Textarea
+ value={apiKey}
+ onChange={e => setApiKey(e.target.value)}
+ placeholder={'gsk_first…\ngsk_second…'}
+ rows={3}
+ className="font-mono text-xs"
+ aria-invalid={addAttempted && !!keyError}
+ />
+ ) : (
+ <Input
+ type="password"
+ value={isKeyless ? '' : apiKey}
+ onChange={e => setApiKey(e.target.value)}
+ placeholder={isKeyless ? t('keys.noKeyNeededPlaceholder') : (needsAccountId ? t('keys.bearerTokenPlaceholder') : t('keys.pasteKeyPlaceholder'))}
+ className="font-mono text-xs"
+ disabled={isKeyless}
+ aria-invalid={addAttempted && !!keyError}
+ />
+ )}
{addAttempted && <FieldError error={keyError} />}
{isKeyless && (
<p className="text-[11px] text-muted-foreground">
@@ -123,14 +185,18 @@ export function AddKeyForm({ onSuccess }: { onSuccess: () => void }) {
placeholder={t('keys.customDisplayNameOptional')}
className="w-[160px]"
/>
- <Button type="submit" size="sm" disabled={addKey.isPending}>
- {addKey.isPending ? t('keys.adding') : isKeyless ? t('keys.enable') : t('keys.addKey')}
+ <Button type="submit" size="sm" disabled={pending}>
+ {pending
+ ? t('keys.adding')
+ : severalMode && keyList.length > 1
+ ? t('keys.importSelected', { count: keyList.length })
+ : isKeyless ? t('keys.enable') : t('keys.addKey')}
</Button>
</div>
</div>
</form>
- {addKey.isError && (
- <p className="text-destructive text-xs mt-2">{(addKey.error as Error).message}</p>
+ {(addKey.isError || addSeveral.isError) && (
+ <p className="text-destructive text-xs mt-2">{((addKey.error ?? addSeveral.error) as Error).message}</p>
)}
</div>
)
diff --git a/client/src/components/keys/copy-key-dialog.tsx b/client/src/components/keys/copy-key-dialog.tsx
new file mode 100644
index 00000000..03b46b39
--- /dev/null
+++ b/client/src/components/keys/copy-key-dialog.tsx
@@ -0,0 +1,89 @@
+import { useState, type FormEvent } from 'react'
+import { Copy } from 'lucide-react'
+import { Dialog, DialogPopup, DialogTitle } from '@/components/ui/dialog'
+import { Button } from '@/components/ui/button'
+import { Input } from '@/components/ui/input'
+import { Label } from '@/components/ui/label'
+import { FieldError } from '@/components/ui/field-error'
+import { apiFetch } from '@/lib/api'
+import { useI18n } from '@/i18n'
+import { toast } from '@/lib/toast'
+
+// #705: the list only ever shows a masked key, and the sole way to read one
+// back was to export every key to a file. This narrows that to one key, behind
+// the same password re-verification the export uses: a live session is not
+// enough to turn a stored credential back into plaintext.
+
+export function CopyKeyDialog({
+ keyId,
+ maskedKey,
+ onOpenChange,
+}: {
+ keyId: number
+ maskedKey: string
+ onOpenChange: (open: boolean) => void
+}) {
+ const { t } = useI18n()
+ // Mounted only while open, so the field starts empty every time and the
+ // password never outlives the dialog.
+ const [password, setPassword] = useState('')
+ const [error, setError] = useState<string | null>(null)
+ const [busy, setBusy] = useState(false)
+
+ async function submit(e: FormEvent) {
+ e.preventDefault()
+ setBusy(true)
+ setError(null)
+ try {
+ const { key } = await apiFetch<{ key: string }>(`/api/keys/${keyId}/reveal`, {
+ method: 'POST',
+ headers: { 'x-reauth-password': password },
+ })
+ await navigator.clipboard.writeText(key)
+ toast.success(t('keys.copiedKey'))
+ onOpenChange(false)
+ } catch (err) {
+ // Wrong password and a clipboard the browser refused both land here, and
+ // both are things to fix in place rather than behind a closed dialog.
+ setError((err as Error).message)
+ setPassword('')
+ } finally {
+ setBusy(false)
+ }
+ }
+
+ return (
+ <Dialog open onOpenChange={onOpenChange}>
+ <DialogPopup maxWidth="max-w-md">
+ <DialogTitle>{t('keys.copyFullKey')}</DialogTitle>
+ <code className="mt-2 block font-mono text-[11px] text-muted-foreground">{maskedKey}</code>
+
+ <form onSubmit={submit} className="mt-4 space-y-4">
+ <div className="space-y-1.5">
+ <Label className="text-xs" htmlFor="reveal-password">{t('auth.password')}</Label>
+ <Input
+ id="reveal-password"
+ type="password"
+ autoFocus
+ autoComplete="current-password"
+ value={password}
+ onChange={e => setPassword(e.target.value)}
+ aria-invalid={!!error}
+ />
+ <FieldError error={error} />
+ </div>
+
+ <div className="flex items-center justify-end gap-2">
+ <Button type="button" variant="outline" size="sm" onClick={() => onOpenChange(false)}>
+ {t('common.cancel')}
+ </Button>
+ <Button type="submit" size="sm" disabled={!password || busy}>
+ <Copy className="size-3.5" />
+ {t('keys.copyKey')}
+ </Button>
+ </div>
+ </form>
+ </DialogPopup>
+ </Dialog>
+ )
+}
diff --git a/client/src/components/keys/provider-list.tsx b/client/src/components/keys/provider-list.tsx
index 3e6cb6fa..6b86e471 100644
--- a/client/src/components/keys/provider-list.tsx
+++ b/client/src/components/keys/provider-list.tsx
@@ -17,7 +17,7 @@ import {
DropdownMenuItem,
DropdownMenuCheckboxItem,
} from '@/components/ui/dropdown-menu'
-import { ChevronDown, CircleAlert, ExternalLink, KeyRound, ListPlus, MoreHorizontal, Pencil, Plus, RefreshCw, Search, Trash2 } from 'lucide-react'
+import { ChevronDown, CircleAlert, Copy, ExternalLink, KeyRound, ListPlus, MoreHorizontal, Pencil, Plus, RefreshCw, Search, Trash2 } from 'lucide-react'
import type { ApiKey, ApiKeyModel } from '../../../../shared/types'
import { formatSqliteUtcToLocalTime } from '@/lib/utils'
import { useI18n } from '@/i18n'
@@ -33,6 +33,7 @@ import {
import type { HealthData } from './shared'
import { DiscoverModelsDialog } from './discover-models-dialog'
import { AddEndpointKeyDialog } from './add-endpoint-key-dialog'
+import { CopyKeyDialog } from './copy-key-dialog'
type StatusFilter = 'all' | 'healthy' | 'issues' | 'disabled'
@@ -57,6 +58,9 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {
// a key joins the pool of an endpoint rather than of the row it was opened
// from, and every key of that endpoint offers the same action.
const [addKeyBaseUrl, setAddKeyBaseUrl] = useState<string | null>(null)
+ // Key whose plaintext the operator asked to copy; re-authentication happens
+ // in the dialog, not here (#705).
+ const [copyKey, setCopyKey] = useState<{ id: number; maskedKey: string } | null>(null)
const editInputRef = useRef<HTMLInputElement>(null)
const { data: keys = [], isLoading } = useQuery<ApiKey[]>({
@@ -118,6 +122,17 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {
},
})
+ // One key on or off, as opposed to togglePlatform's whole-platform sweep (#705).
+ const setKeyEnabled = useMutation({
+ mutationFn: ({ id, enabled }: { id: number; enabled: boolean }) =>
+ apiFetch(`/api/keys/${id}`, { method: 'PATCH', body: JSON.stringify({ enabled }) }),
+ onSuccess: () => {
+ queryClient.invalidateQueries({ queryKey: ['keys'] })
+ queryClient.invalidateQueries({ queryKey: ['health'] })
+ queryClient.invalidateQueries({ queryKey: ['fallback'] })
+ },
+ })
+
const updateKey = useMutation({
mutationFn: ({ id, label }: { id: number; label: string }) =>
apiFetch(`/api/keys/${id}`, {
@@ -366,6 +381,19 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {
return (
<div key={k.id} className="bg-card">
<div className="group/krow flex items-center gap-3 px-4 py-3 hover:bg-muted/40 transition-colors">
+ {/* Per-key switch (#705). The group switch writes every key of the
+ platform at once, which for the Custom group meant every endpoint
+ you run. The API has taken a per-key `enabled` all along and the
+ router honours it; only the dashboard could not say it. Leading,
+ like the group's own switch, so the hierarchy reads at a glance
+ and a disabled key is visible without hovering the row. */}
+ <Switch
+ size="sm"
+ checked={k.enabled}
+ onCheckedChange={(checked) => setKeyEnabled.mutate({ id: k.id, enabled: checked })}
+ disabled={setKeyEnabled.isPending && setKeyEnabled.variables?.id === k.id}
+ aria-label={t('keys.enable')}
+ />
<span className={`size-1.5 rounded-full flex-shrink-0 ${statusDot[status] ?? statusDot.unknown}`} />
{hasCustomModels && (
<Button
@@ -379,7 +407,7 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {
<ChevronDown className={`size-3 transition-transform ${isExpanded ? 'rotate-180' : ''}`} />
</Button>
)}
- <code className="text-xs font-mono flex-shrink-0">{k.maskedKey}</code>
+ <code className={`text-xs font-mono flex-shrink-0 ${k.enabled ? '' : 'opacity-50'}`}>{k.maskedKey}</code>
{isEditing ? (
<Input
ref={editInputRef}
@@ -395,15 +423,26 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {
/>
) : (
<>
- {k.label && <span className="text-xs text-muted-foreground">{k.label}</span>}
+ {/* The label is the edit affordance itself (#705): the pencil
+ only appears on hover, so clicking the name is the move
+ everyone tries first. An unlabelled key still needs
+ somewhere to click, hence the muted prompt. */}
+ <button
+ type="button"
+ onClick={() => startEditing(k)}
+ title={t('keys.editLabel')}
+ className={`rounded text-xs hover:text-foreground hover:underline underline-offset-2 ${k.label ? 'text-muted-foreground' : 'text-muted-foreground/50'} ${k.enabled ? '' : 'opacity-50'}`}
+ >
+ {k.label || t('keys.editLabel')}
+ </button>
{k.baseUrl && (
- <code className="text-[11px] text-muted-foreground font-mono truncate max-w-[260px]" title={k.baseUrl}>
+ <code className={`text-[11px] text-muted-foreground font-mono truncate max-w-[260px] ${k.enabled ? '' : 'opacity-50'}`} title={k.baseUrl}>
{k.baseUrl}
</code>
)}
</>
)}
- <span className="text-xs text-muted-foreground">{statusLabelKey[status] ? t(statusLabelKey[status]) : status}</span>
+ <span className={`text-xs text-muted-foreground ${k.enabled ? '' : 'opacity-50'}`}>{statusLabelKey[status] ? t(statusLabelKey[status]) : status}</span>
<div className="flex-1" />
{lastChecked && (
<span className="text-[11px] text-muted-foreground tabular-nums">
@@ -422,6 +461,18 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {
<Pencil className="size-3" />
</Button>
)}
+ {!k.keyless && (
+ <Tooltip text={t('keys.copyFullKey')}>
+ <Button
+ variant="ghost"
+ size="icon-xs"
+ onClick={() => setCopyKey({ id: k.id, maskedKey: k.maskedKey })}
+ aria-label={t('keys.copyFullKey')}
+ >
+ <Copy className="size-3" />
+ </Button>
+ </Tooltip>
+ )}
{k.platform === 'custom' && k.baseUrl && (
<>
<Tooltip text={t('keys.addKey')}>
@@ -535,6 +586,14 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {
baseUrl={addKeyBaseUrl}
/>
)}
+
+ {copyKey !== null && (
+ <CopyKeyDialog
+ keyId={copyKey.id}
+ maskedKey={copyKey.maskedKey}
+ onOpenChange={(open) => { if (!open) setCopyKey(null) }}
+ />
+ )}
</div>
)
}
diff --git a/client/src/components/keys/quota-signals-section.tsx b/client/src/components/keys/quota-signals-section.tsx
index 3a514b22..8c7aaffc 100644
--- a/client/src/components/keys/quota-signals-section.tsx
+++ b/client/src/components/keys/quota-signals-section.tsx
@@ -26,7 +26,11 @@ export function QuotaSignalsSection({ states }: { states: ProviderQuotaState[] }
<div key={`${state.platform}:${state.keyId}:${state.quotaPoolKey}:${state.metric}`} className="px-4 py-3.5 text-sm">
<div className="flex flex-wrap items-center gap-x-3 gap-y-1">
<span className="font-medium">{state.platform}</span>
- <span className="text-muted-foreground">{t('keys.quotaKeyRef', { id: state.keyId })}</span>
+ {/* The key's own name where it has one, since "key #7" tells the
+ operator nothing about which credential is near its limit (#705). */}
+ <span className="text-muted-foreground">
+ {state.keyLabel || t('keys.quotaKeyRef', { id: state.keyId })}
+ </span>
<span className="text-muted-foreground">{t('keys.quotaPoolRef', { pool: state.quotaPoolKey })}</span>
<span className="text-xs px-2 py-0.5 rounded-full bg-muted text-muted-foreground">{state.metric}</span>
<span className="ml-auto text-xs text-muted-foreground">
diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.json
index 82047eb2..e333962d 100644
--- a/client/src/i18n/locales/am.json
+++ b/client/src/i18n/locales/am.json
@@ -302,6 +302,7 @@
"showKey": "አሳይ",
"hideKey": "መደበቅ",
"copyKey": "ቅዳ",
+ "copyFullKey": "ሙሉ ቁልፍ ቅዳ",
"copiedKey": "ተቀድዟል",
"baseUrl": "የመሠረት URL",
"endpointChat": "ተወያይ",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "ምንም API ቁልፍ አያስፈልግም",
"bearerTokenPlaceholder": "ተሸካሚ ማስመሰያ",
"pasteKeyPlaceholder": "ቁልፍ እዚህ ይለጥፉ",
+ "pasteSeveral": "ብዙ ለጥፍ",
"keylessHint": "ምንም API ቁልፍ አያስፈልግም የዚህ አቅራቢ ነፃ ደረጃ ስም-አልባ ነው (በአይፒ ተመን የተገደበ)።",
"enable": "አንቃ",
"noProviderKeys": "እስካሁን ምንም የአቅራቢ ቁልፎች የሉም። ማዘዋወር ለመጀመር ከላይ ያለውን ያክሉ።",
diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.json
index fce53dc5..2ef5913a 100644
--- a/client/src/i18n/locales/ar.json
+++ b/client/src/i18n/locales/ar.json
@@ -302,6 +302,7 @@
"showKey": "عرض",
"hideKey": "إخفاء",
"copyKey": "نسخ",
+ "copyFullKey": "نسخ المفتاح الكامل",
"copiedKey": "منقول",
"baseUrl": "قاعدة URL",
"endpointChat": "الدردشة",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "لا حاجة لمفتاح API",
"bearerTokenPlaceholder": "رمز حامل",
"pasteKeyPlaceholder": "الصق المفتاح هنا",
+ "pasteSeveral": "لصق عدة مفاتيح",
"keylessHint": "لا حاجة إلى مفتاح API: الطبقة المجانية لهذا الموفر مجهولة (معدل محدود لكل IP).",
"enable": "تمكين",
"noProviderKeys": "لا توجد مفاتيح موفر حتى الآن. أضف واحدًا أعلاه لبدء التوجيه.",
diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.json
index 3d126afe..65415e2f 100644
--- a/client/src/i18n/locales/az.json
+++ b/client/src/i18n/locales/az.json
@@ -302,6 +302,7 @@
"showKey": "Şou",
"hideKey": "Gizlən",
"copyKey": "Alındı",
+ "copyFullKey": "Tam açarı kopyala",
"copiedKey": "Kopyalandı",
"baseUrl": "Baza URL",
"endpointChat": "Söhbət",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Heç API açar lazım deyil",
"bearerTokenPlaceholder": "Daşıyıcı token",
"pasteKeyPlaceholder": "Burada açarı yapışdır",
+ "pasteSeveral": "Bir neçəsini yapışdır",
"keylessHint": "API açar tələb olunmur: bu provayderin pulsuz səviyyəsi anonimdir (IP üçün tarif məhdudiyyəti ilə).",
"enable": "Aktiv et",
"noProviderKeys": "Hələ provayder açarları yoxdur. Marşrutlaşdırmaya başlamaq üçün yuxarıda birini əlavə edin.",
diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.json
index 6e6b5dea..c7e65537 100644
--- a/client/src/i18n/locales/bg.json
+++ b/client/src/i18n/locales/bg.json
@@ -302,6 +302,7 @@
"showKey": "Шоу",
"hideKey": "Скрий се",
"copyKey": "Прието.",
+ "copyFullKey": "Копиране на пълния ключ",
"copiedKey": "Копирано",
"baseUrl": "Базова URL",
"endpointChat": "Чат",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Не е нужен API ключ",
"bearerTokenPlaceholder": "Жетон на носителя",
"pasteKeyPlaceholder": "Постави ключа тук",
+ "pasteSeveral": "Поставяне на няколко",
"keylessHint": "Не е необходим API ключ: безплатният слой на този доставчик е анонимен (с ограничена цена за IP адрес).",
"enable": "Включи",
"noProviderKeys": "Все още няма ключове за доставчика. Добавете една по-горе, за да започнете маршрутизирането.",
diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.json
index 971f82ca..3c48230a 100644
--- a/client/src/i18n/locales/bn.json
+++ b/client/src/i18n/locales/bn.json
@@ -302,6 +302,7 @@
"showKey": "দেখান",
"hideKey": "লুকান",
"copyKey": "কপি",
+ "copyFullKey": "সম্পূর্ণ কী কপি করুন",
"copiedKey": "কপি করা হয়েছে",
"baseUrl": "বেস URL",
"endpointChat": "চ্যাট",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "কোন API কী প্রয়োজন নেই",
"bearerTokenPlaceholder": "বহনকারী টোকেন",
"pasteKeyPlaceholder": "এখানে কী পেস্ট করুন",
+ "pasteSeveral": "একাধিক পেস্ট করুন",
"keylessHint": "কোন API কী প্রয়োজন নেই: এই প্রদানকারীর বিনামূল্যের স্তর বেনামী (প্রতি IP হার-সীমিত)।",
"enable": "সক্ষম করুন",
"noProviderKeys": "এখনও কোন প্রদানকারী কী. রাউটিং শুরু করতে উপরে একটি যোগ করুন।",
diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.json
index 52e588d9..8ce39d92 100644
--- a/client/src/i18n/locales/cs.json
+++ b/client/src/i18n/locales/cs.json
@@ -302,6 +302,7 @@
"showKey": "Pořad",
"hideKey": "Schovej se",
"copyKey": "Rozumím",
+ "copyFullKey": "Kopírovat celý klíč",
"copiedKey": "Zkopírováno",
"baseUrl": "Základní URL",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Klíč API není potřeba",
"bearerTokenPlaceholder": "Token na doručitele",
"pasteKeyPlaceholder": "Vložte zde klíč",
+ "pasteSeveral": "Vložit více",
"keylessHint": "Není potřeba API klíč: bezplatná úroveň tohoto poskytovatele je anonymní (omezená rychlostí na IP adresu).",
"enable": "Povolit",
"noProviderKeys": "Klíče od poskytovatele zatím neexistují. Přidejte jeden výše, abyste mohli začít směrovat.",
diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.json
index 7e8f8588..d79daa78 100644
--- a/client/src/i18n/locales/da.json
+++ b/client/src/i18n/locales/da.json
@@ -302,6 +302,7 @@
"showKey": "Show",
"hideKey": "Gem dig",
"copyKey": "Modtaget",
+ "copyFullKey": "Kopiér hele nøglen",
"copiedKey": "Kopieret",
"baseUrl": "Base URL",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Ingen API nøgle nødvendig",
"bearerTokenPlaceholder": "Bærertoken",
"pasteKeyPlaceholder": "Afsæt nøgle her",
+ "pasteSeveral": "Indsæt flere",
"keylessHint": "Ingen API nøgle nødvendig: denne udbyders gratis niveau er anonymt (prisbegrænset pr. IP).",
"enable": "Enable",
"noProviderKeys": "Ingen udbydernøgler endnu. Tilføj en ovenfor for at starte ruten.",
diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.json
index aee3547f..11952449 100644
--- a/client/src/i18n/locales/de.json
+++ b/client/src/i18n/locales/de.json
@@ -302,6 +302,7 @@
"showKey": "Zeigen",
"hideKey": "Verstecken",
"copyKey": "Kopieren",
+ "copyFullKey": "Vollständigen Schlüssel kopieren",
"copiedKey": "Kopiert",
"baseUrl": "Basis URL",
"endpointChat": "Chatten",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Kein API-Schlüssel erforderlich",
"bearerTokenPlaceholder": "Inhabertoken",
"pasteKeyPlaceholder": "Schlüssel hier einfügen",
+ "pasteSeveral": "Mehrere einfügen",
"keylessHint": "Kein API-Schlüssel erforderlich: Das kostenlose Kontingent dieses Anbieters ist anonym (Ratenbegrenzung pro IP).",
"enable": "Aktivieren",
"noProviderKeys": "Noch keine Anbieterschlüssel. Fügen Sie oben eines hinzu, um mit dem Routing zu beginnen.",
diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.json
index 2a748a18..6bb52e88 100644
--- a/client/src/i18n/locales/el.json
+++ b/client/src/i18n/locales/el.json
@@ -302,6 +302,7 @@
"showKey": "Προβολή",
"hideKey": "Απόκρυψη",
"copyKey": "Αντιγραφή",
+ "copyFullKey": "Αντιγραφή πλήρους κλειδιού",
"copiedKey": "Αντιγράφηκε",
"baseUrl": "Βάση URL",
"endpointChat": "Κουβέντα",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Δεν χρειάζεται API κλειδί",
"bearerTokenPlaceholder": "Διακριτικό κομιστή",
"pasteKeyPlaceholder": "Επικόλληση κλειδιού εδώ",
+ "pasteSeveral": "Επικόλληση πολλών",
"keylessHint": "Δεν απαιτείται API κλειδί: η δωρεάν βαθμίδα αυτού του παρόχου είναι ανώνυμη (περιορισμένη τιμή ανά IP).",
"enable": "Ενεργοποίηση",
"noProviderKeys": "Δεν υπάρχουν ακόμη κλειδιά παρόχου. Προσθέστε ένα παραπάνω για να ξεκινήσετε τη δρομολόγηση.",
diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.json
index 1141e0f4..6cc3e1e1 100644
--- a/client/src/i18n/locales/en.json
+++ b/client/src/i18n/locales/en.json
@@ -303,6 +303,7 @@
"showKey": "Show",
"hideKey": "Hide",
"copyKey": "Copy",
+ "copyFullKey": "Copy full key",
"copiedKey": "Copied",
"baseUrl": "Base URL",
"endpointChat": "Chat",
@@ -421,6 +422,7 @@
"noKeyNeededPlaceholder": "No API key needed",
"bearerTokenPlaceholder": "Bearer token",
"pasteKeyPlaceholder": "paste key here",
+ "pasteSeveral": "Paste several",
"keylessHint": "No API key needed: this provider's free tier is anonymous (rate-limited per IP).",
"enable": "Enable",
"noProviderKeys": "No provider keys yet. Add one above to start routing.",
diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.json
index c4c24ec2..6351cc42 100644
--- a/client/src/i18n/locales/es.json
+++ b/client/src/i18n/locales/es.json
@@ -302,6 +302,7 @@
"showKey": "Mostrar",
"hideKey": "Ocultar",
"copyKey": "Copiar",
+ "copyFullKey": "Copiar clave completa",
"copiedKey": "Copiado",
"baseUrl": "URL base",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "No se necesita clave API",
"bearerTokenPlaceholder": "Token Bearer",
"pasteKeyPlaceholder": "pega la clave aquí",
+ "pasteSeveral": "Pegar varias",
"keylessHint": "No se necesita clave API: el nivel gratuito de este proveedor es anónimo (con límite por IP).",
"enable": "Habilitar",
"noProviderKeys": "Aún no hay claves de proveedor. Añade una arriba para empezar a enrutar.",
diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.json
index bd2f0f11..bfbff1c7 100644
--- a/client/src/i18n/locales/fa.json
+++ b/client/src/i18n/locales/fa.json
@@ -302,6 +302,7 @@
"showKey": "نمایش دهید",
"hideKey": "پنهان کردن",
"copyKey": "کپی کنید",
+ "copyFullKey": "کپی کلید کامل",
"copiedKey": "کپی شده است",
"baseUrl": "پایه URL",
"endpointChat": "چت کنید",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "کلید API مورد نیاز نیست",
"bearerTokenPlaceholder": "نشان حامل",
"pasteKeyPlaceholder": "کلید را اینجا بچسبانید",
+ "pasteSeveral": "چند تا را جای‌گذاری کنید",
"keylessHint": "کلید API مورد نیاز نیست: ردیف رایگان این ارائه دهنده ناشناس است (محدود به نرخ برای هر IP).",
"enable": "فعال کردن",
"noProviderKeys": "هنوز کلید ارائه دهنده وجود ندارد. برای شروع مسیریابی یکی از بالا را اضافه کنید.",
diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.json
index 826eb4c8..92d451a3 100644
--- a/client/src/i18n/locales/fi.json
+++ b/client/src/i18n/locales/fi.json
@@ -302,6 +302,7 @@
"showKey": "Ohjelma",
"hideKey": "Piiloudu",
"copyKey": "Selvä",
+ "copyFullKey": "Kopioi koko avain",
"copiedKey": "Kopioitu",
"baseUrl": "Perus URL",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Ei tarvita API avainta",
"bearerTokenPlaceholder": "Kantajamerkki",
"pasteKeyPlaceholder": "Liitä avain tähän",
+ "pasteSeveral": "Liitä useita",
"keylessHint": "API avainta ei tarvita: tämän palveluntarjoajan ilmainen taso on anonyymi (maksurajoitettu IP-osoitteeseen liittyen).",
"enable": "Ota käyttöön",
"noProviderKeys": "Ei vielä palveluntarjoajan avaimia. Lisää yksi ylle aloittaaksesi reitityksen.",
diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.json
index e0d6c4e0..07260d80 100644
--- a/client/src/i18n/locales/fr.json
+++ b/client/src/i18n/locales/fr.json
@@ -302,6 +302,7 @@
"showKey": "Afficher",
"hideKey": "Masquer",
"copyKey": "Copier",
+ "copyFullKey": "Copier la clé complète",
"copiedKey": "Copié",
"baseUrl": "URL de base",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Aucune clé API requise",
"bearerTokenPlaceholder": "Jeton Bearer",
"pasteKeyPlaceholder": "collez la clé ici",
+ "pasteSeveral": "Coller plusieurs",
"keylessHint": "Aucune clé API requise : l'offre gratuite de ce fournisseur est anonyme (limitée par IP).",
"enable": "Activer",
"noProviderKeys": "Aucune clé de fournisseur pour l'instant. Ajoutez-en une ci-dessus pour commencer le routage.",
diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.json
index 0bcfef1d..8f7d0518 100644
--- a/client/src/i18n/locales/gu.json
+++ b/client/src/i18n/locales/gu.json
@@ -302,6 +302,7 @@
"showKey": "બતાવો",
"hideKey": "છુપાવો",
"copyKey": "નકલ કરો",
+ "copyFullKey": "સંપૂર્ણ કી કૉપિ કરો",
"copiedKey": "નકલ કરી",
"baseUrl": "આધાર URL",
"endpointChat": "ચેટ",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "API કીની જરૂર નથી",
"bearerTokenPlaceholder": "બેરર ટોકન",
"pasteKeyPlaceholder": "કી અહીં પેસ્ટ કરો",
+ "pasteSeveral": "એકથી વધુ પેસ્ટ કરો",
"keylessHint": "API કીની જરૂર નથી: આ પ્રદાતાનું મફત સ્તર અનામી છે (દર-મર્યાદિત IP દીઠ).",
"enable": "સક્ષમ કરો",
"noProviderKeys": "હજી સુધી કોઈ પ્રદાતા કી નથી. રાઉટીંગ શરૂ કરવા માટે ઉપર એક ઉમેરો.",
diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.json
index 497e12cc..4ff42131 100644
--- a/client/src/i18n/locales/ha.json
+++ b/client/src/i18n/locales/ha.json
@@ -302,6 +302,7 @@
"showKey": "Nuna",
"hideKey": "Boye",
"copyKey": "Kwafi",
+ "copyFullKey": "Kwafi cikakken maɓalli",
"copiedKey": "Kwafi",
"baseUrl": "Tushen URL",
"endpointChat": "Taɗi",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Babu maɓallin API da ake buƙata",
"bearerTokenPlaceholder": "Alamar mai ɗaukar nauyi",
"pasteKeyPlaceholder": "manna makullin nan",
+ "pasteSeveral": "Liƙa da yawa",
"keylessHint": "Babu maɓallin API da ake buƙata: wannan matakin kyauta na mai bayarwa ba a san shi ba (mai-iyakantaccen ƙimar kowane IP).",
"enable": "Kunna",
"noProviderKeys": "Babu maɓallan mai bayarwa tukuna. Ƙara ɗaya a sama don fara kewayawa.",
diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.json
index 13ec993b..ec0d0b87 100644
--- a/client/src/i18n/locales/he.json
+++ b/client/src/i18n/locales/he.json
@@ -302,6 +302,7 @@
"showKey": "תוכנית",
"hideKey": "הסתתר",
"copyKey": "העתק",
+ "copyFullKey": "העתקת המפתח המלא",
"copiedKey": "הועתק",
"baseUrl": "בסיס URL",
"endpointChat": "שיחה",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "אין צורך במפתח API",
"bearerTokenPlaceholder": "אסימון נושא",
"pasteKeyPlaceholder": "הדביק כאן מקש",
+ "pasteSeveral": "הדבקת כמה",
"keylessHint": "אין צורך במפתח API: השכבה החינמית של הספק הזה היא אנונימית (מוגבלת בקצב לכל כתובת IP).",
"enable": "הפעל",
"noProviderKeys": "עדיין אין מפתחות לספק. הוסף אחד למעלה כדי להתחיל לנתב.",
diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.json
index 03922264..ae83d04b 100644
--- a/client/src/i18n/locales/hi.json
+++ b/client/src/i18n/locales/hi.json
@@ -302,6 +302,7 @@
"showKey": "दिखाओ",
"hideKey": "छिपाओ",
"copyKey": "प्रतिलिपि",
+ "copyFullKey": "पूरी कुंजी कॉपी करें",
"copiedKey": "नकल की गई",
"baseUrl": "आधार URL",
"endpointChat": "बातचीत",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "कोई API कुंजी की आवश्यकता नहीं है",
"bearerTokenPlaceholder": "वाहक टोकन",
"pasteKeyPlaceholder": "यहाँ कुंजी चिपकाएँ",
+ "pasteSeveral": "एक से अधिक पेस्ट करें",
"keylessHint": "कोई API कुंजी की आवश्यकता नहीं है: इस प्रदाता का निःशुल्क स्तर गुमनाम है (प्रति आईपी दर-सीमित)।",
"enable": "सक्षम करें",
"noProviderKeys": "अभी तक कोई प्रदाता कुंजी नहीं है. रूटिंग शुरू करने के लिए ऊपर एक जोड़ें।",
diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.json
index 46dd189c..ad54827b 100644
--- a/client/src/i18n/locales/hr.json
+++ b/client/src/i18n/locales/hr.json
@@ -302,6 +302,7 @@
"showKey": "Emisija",
"hideKey": "Sakrij se",
"copyKey": "Primljeno",
+ "copyFullKey": "Kopiraj cijeli ključ",
"copiedKey": "Kopirano",
"baseUrl": "Baza URL",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Nije potreban API ključ",
"bearerTokenPlaceholder": "Token nositelja",
"pasteKeyPlaceholder": "Ovdje zalijepi ključ",
+ "pasteSeveral": "Zalijepi više",
"keylessHint": "Nije potreban API ključ: besplatni paket ovog pružatelja je anoniman (ograničen brzinom po IP adresi).",
"enable": "Omogući",
"noProviderKeys": "Još nema ključeva pružatelja usluga. Dodaj jedan gore da počneš s rutiranjem.",
diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.json
index a52f52bb..38a4fd61 100644
--- a/client/src/i18n/locales/hu.json
+++ b/client/src/i18n/locales/hu.json
@@ -302,6 +302,7 @@
"showKey": "Műsor",
"hideKey": "Bújj el",
"copyKey": "Értettem",
+ "copyFullKey": "Teljes kulcs másolása",
"copiedKey": "Másolva",
"baseUrl": "Alap URL",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Nem kell API kulcs",
"bearerTokenPlaceholder": "Viselő zsetont",
"pasteKeyPlaceholder": "Itt illesztő kulcs",
+ "pasteSeveral": "Több beillesztése",
"keylessHint": "Nem kell API kulcs: ennek a szolgáltatónak az ingyenes szintje anonim (IP-re korlátozott díj).",
"enable": "Engedélyezd",
"noProviderKeys": "Még nincs szolgáltató kulcs. Teszünk hozzá egyet fentebb, hogy elkezdd az útvonaltervezést.",
diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.json
index 6addbbd2..1fce7cd5 100644
--- a/client/src/i18n/locales/id.json
+++ b/client/src/i18n/locales/id.json
@@ -302,6 +302,7 @@
"showKey": "Tunjukkan",
"hideKey": "Sembunyikan",
"copyKey": "Salin",
+ "copyFullKey": "Salin kunci lengkap",
"copiedKey": "Disalin",
"baseUrl": "Basis URL",
"endpointChat": "Obrolan",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Tidak diperlukan kunci API",
"bearerTokenPlaceholder": "Token pembawa",
"pasteKeyPlaceholder": "tempelkan kunci di sini",
+ "pasteSeveral": "Tempel beberapa",
"keylessHint": "Tidak diperlukan kunci API: tingkat gratis penyedia ini bersifat anonim (dibatasi tarif per IP).",
"enable": "Aktifkan",
"noProviderKeys": "Belum ada kunci penyedia. Tambahkan satu di atas untuk memulai perutean.",
diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.json
index 38ff4c1c..39b76529 100644
--- a/client/src/i18n/locales/ig.json
+++ b/client/src/i18n/locales/ig.json
@@ -302,6 +302,7 @@
"showKey": "Gosi",
"hideKey": "Zoo",
"copyKey": "Detuo",
+ "copyFullKey": "Detuo igodo zuru ezu",
"copiedKey": "Eṅomiri",
"baseUrl": "Ntọala URL",
"endpointChat": "Kpaa nkata",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Enweghị igodo API achọrọ",
"bearerTokenPlaceholder": "Ihe nrịbama ebu",
"pasteKeyPlaceholder": "mado igodo ebe a",
+ "pasteSeveral": "Mado ọtụtụ",
"keylessHint": "Enweghị igodo API achọrọ: ọkwa n'efu nke onye na-eweta nke a bụ nke amaghị aha (oke-oke IP ọ bụla).",
"enable": "Kwado",
"noProviderKeys": "Enweghị igodo ndị na-eweta ya. Tinye otu n'elu ka ịmalite ịkwọgharị.",
diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.json
index 59763436..69184731 100644
--- a/client/src/i18n/locales/it.json
+++ b/client/src/i18n/locales/it.json
@@ -302,6 +302,7 @@
"showKey": "Mostra",
"hideKey": "Nascondi",
"copyKey": "Copia",
+ "copyFullKey": "Copia chiave completa",
"copiedKey": "Copiato",
"baseUrl": "URL di base",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Nessuna chiave API necessaria",
"bearerTokenPlaceholder": "Bearer token",
"pasteKeyPlaceholder": "incolla la chiave qui",
+ "pasteSeveral": "Incolla diverse",
"keylessHint": "Nessuna chiave API necessaria: il livello gratuito di questo fornitore è anonimo (limitato per IP).",
"enable": "Abilita",
"noProviderKeys": "Nessuna chiave fornitore ancora. Aggiungine una sopra per iniziare il routing.",
diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.json
index 566024d6..c2a9e4ce 100644
--- a/client/src/i18n/locales/ja.json
+++ b/client/src/i18n/locales/ja.json
@@ -302,6 +302,7 @@
"showKey": "表示する",
"hideKey": "隠す",
"copyKey": "コピー",
+ "copyFullKey": "キー全体をコピー",
"copiedKey": "コピーされました",
"baseUrl": "ベース URL",
"endpointChat": "チャット",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "API キーは必要ありません",
"bearerTokenPlaceholder": "無記名トークン",
"pasteKeyPlaceholder": "ここにキーを貼り付けます",
+ "pasteSeveral": "複数を貼り付け",
"keylessHint": "API キーは必要ありません。このプロバイダーの無料利用枠は匿名です (IP ごとにレートが制限されています)。",
"enable": "有効にする",
"noProviderKeys": "プロバイダーキーはまだありません。上に 1 つ追加してルーティングを開始します。",
diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.json
index a7ad1f35..d8a63332 100644
--- a/client/src/i18n/locales/ka.json
+++ b/client/src/i18n/locales/ka.json
@@ -302,6 +302,7 @@
"showKey": "ჩვენება",
"hideKey": "დამალვა",
"copyKey": "კოპირება",
+ "copyFullKey": "სრული გასაღების კოპირება",
"copiedKey": "კოპირებულია",
"baseUrl": "ბაზა URL",
"endpointChat": "ჩატი",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "API გასაღები არ არის საჭირო",
"bearerTokenPlaceholder": "მატარებლის ნიშანი",
"pasteKeyPlaceholder": "ჩასვით გასაღები აქ",
+ "pasteSeveral": "რამდენიმეს ჩასმა",
"keylessHint": "API გასაღები არ არის საჭირო: ამ პროვაიდერის უფასო დონე ანონიმურია (ფასი შეზღუდულია IP-ზე).",
"enable": "ჩართვა",
"noProviderKeys": "პროვაიდერის გასაღებები ჯერ არ არის. დაამატეთ ერთი ზემოთ მარშრუტის დასაწყებად.",
diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.json
index 6fa9b7ec..67301a4c 100644
--- a/client/src/i18n/locales/km.json
+++ b/client/src/i18n/locales/km.json
@@ -302,6 +302,7 @@
"showKey": "ការបង្ហាញ",
"hideKey": "លាក់ខ្លួន",
"copyKey": "ចម្លង",
+ "copyFullKey": "ចម្លងកូនសោពេញ",
"copiedKey": "បានចម្លង",
"baseUrl": "Base URL",
"endpointChat": "ជជែក",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "មិនចាំបាច់ប្រើកូនសោ API",
"bearerTokenPlaceholder": "សញ្ញាអ្នកកាន់",
"pasteKeyPlaceholder": "បិទសោនៅទីនេះ",
+ "pasteSeveral": "បិទភ្ជាប់ច្រើន",
"keylessHint": "មិនចាំបាច់មានកូនសោ API ទេ៖ ថ្នាក់ឥតគិតថ្លៃរបស់អ្នកផ្គត់ផ្គង់នេះគឺអនាមិក (កំណត់អត្រាតាម IP)។",
"enable": "បើក",
"noProviderKeys": "មិនទាន់មានកូនសោអ្នកផ្គត់ផ្គង់ទេ។ បន្ថែមមួយខាងលើដើម្បីចាប់ផ្តើមផ្លូវ។",
diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.json
index 09e0a1e8..0075a7a3 100644
--- a/client/src/i18n/locales/kn.json
+++ b/client/src/i18n/locales/kn.json
@@ -302,6 +302,7 @@
"showKey": "ತೋರಿಸು",
"hideKey": "ಮರೆಮಾಡಿ",
"copyKey": "ನಕಲು ಮಾಡಿ",
+ "copyFullKey": "ಪೂರ್ಣ ಕೀ ನಕಲಿಸಿ",
"copiedKey": "ನಕಲು ಮಾಡಲಾಗಿದೆ",
"baseUrl": "ಬೇಸ್ URL",
"endpointChat": "ಚಾಟ್ ಮಾಡಿ",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "ಯಾವುದೇ API ಕೀ ಅಗತ್ಯವಿಲ್ಲ",
"bearerTokenPlaceholder": "ಬೇರರ್ ಟೋಕನ್",
"pasteKeyPlaceholder": "ಕೀಲಿಯನ್ನು ಇಲ್ಲಿ ಅಂಟಿಸಿ",
+ "pasteSeveral": "ಹಲವನ್ನು ಅಂಟಿಸಿ",
"keylessHint": "API ಕೀ ಅಗತ್ಯವಿಲ್ಲ: ಈ ಪೂರೈಕೆದಾರರ ಉಚಿತ ಶ್ರೇಣಿಯು ಅನಾಮಧೇಯವಾಗಿದೆ (ಪ್ರತಿ IP ಗೆ ದರ-ಸೀಮಿತವಾಗಿದೆ).",
"enable": "ಸಕ್ರಿಯಗೊಳಿಸಿ",
"noProviderKeys": "ಇನ್ನೂ ಯಾವುದೇ ಪೂರೈಕೆದಾರರ ಕೀಗಳಿಲ್ಲ. ರೂಟಿಂಗ್ ಪ್ರಾರಂಭಿಸಲು ಮೇಲಿನ ಒಂದನ್ನು ಸೇರಿಸಿ.",
diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.json
index 91774440..adce0768 100644
--- a/client/src/i18n/locales/ko.json
+++ b/client/src/i18n/locales/ko.json
@@ -302,6 +302,7 @@
"showKey": "쇼",
"hideKey": "숨기기",
"copyKey": "복사",
+ "copyFullKey": "전체 키 복사",
"copiedKey": "복사됨",
"baseUrl": "베이스 URL",
"endpointChat": "채팅",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "API 키가 필요하지 않습니다.",
"bearerTokenPlaceholder": "무기명 토큰",
"pasteKeyPlaceholder": "여기에 키를 붙여넣으세요",
+ "pasteSeveral": "여러 개 붙여넣기",
"keylessHint": "API 키가 필요하지 않습니다. 이 공급자의 무료 등급은 익명입니다(IP당 속도 제한).",
"enable": "활성화",
"noProviderKeys": "아직 제공업체 키가 없습니다. 라우팅을 시작하려면 위에 하나를 추가하세요.",
diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.json
index f6cf50f6..3dedb6ea 100644
--- a/client/src/i18n/locales/lt.json
+++ b/client/src/i18n/locales/lt.json
@@ -302,6 +302,7 @@
"showKey": "Laida",
"hideKey": "Slėpkis",
"copyKey": "Supratau",
+ "copyFullKey": "Kopijuoti visą raktą",
"copiedKey": "Nukopijuota",
"baseUrl": "Bazės URL",
"endpointChat": "Pokalbis",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Nereikia API rakto",
"bearerTokenPlaceholder": "Nešiotojo žetonas",
"pasteKeyPlaceholder": "Įklijavimo raktas čia",
+ "pasteSeveral": "Įklijuoti kelis",
"keylessHint": "Nereikia API rakto: šio tiekėjo nemokamas lygis yra anonimiškas (ribojamas pagal IP adresą).",
"enable": "Įjungti",
"noProviderKeys": "Kol kas nėra tiekėjų raktų. Pridėkite vieną aukščiau, kad pradėtumėte maršrutizavimą.",
diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.json
index c133204f..603ee0b4 100644
--- a/client/src/i18n/locales/ml.json
+++ b/client/src/i18n/locales/ml.json
@@ -302,6 +302,7 @@
"showKey": "കാണിക്കുക",
"hideKey": "മറയ്ക്കുക",
"copyKey": "പകർത്തുക",
+ "copyFullKey": "പൂർണ്ണ കീ പകർത്തുക",
"copiedKey": "പകർത്തി",
"baseUrl": "അടിസ്ഥാന URL",
"endpointChat": "ചാറ്റ്",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "API കീ ആവശ്യമില്ല",
"bearerTokenPlaceholder": "ബെയറർ ടോക്കൺ",
"pasteKeyPlaceholder": "കീ ഇവിടെ ഒട്ടിക്കുക",
+ "pasteSeveral": "ഒന്നിലധികം ഒട്ടിക്കുക",
"keylessHint": "API കീ ആവശ്യമില്ല: ഈ ദാതാവിൻ്റെ സൗജന്യ ടയർ അജ്ഞാതമാണ് (ഓരോ IP-നും നിരക്ക് പരിമിതമാണ്).",
"enable": "പ്രവർത്തനക്ഷമമാക്കുക",
"noProviderKeys": "ഇതുവരെ ദാതാവിൻ്റെ കീകളൊന്നുമില്ല. റൂട്ടിംഗ് ആരംഭിക്കാൻ മുകളിൽ ഒന്ന് ചേർക്കുക.",
diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.json
index 2ee6221c..299a0e50 100644
--- a/client/src/i18n/locales/mr.json
+++ b/client/src/i18n/locales/mr.json
@@ -302,6 +302,7 @@
"showKey": "दाखवा",
"hideKey": "लपवा",
"copyKey": "कॉपी करा",
+ "copyFullKey": "पूर्ण की कॉपी करा",
"copiedKey": "कॉपी केले",
"baseUrl": "बेस URL",
"endpointChat": "गप्पा",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "API की आवश्यक नाही",
"bearerTokenPlaceholder": "बेअरर टोकन",
"pasteKeyPlaceholder": "येथे की पेस्ट करा",
+ "pasteSeveral": "अनेक पेस्ट करा",
"keylessHint": "API की आवश्यक नाही: या प्रदात्याचा विनामूल्य स्तर निनावी आहे (दर-मर्यादित प्रति IP).",
"enable": "सक्षम करा",
"noProviderKeys": "अद्याप प्रदाता की नाही. राउटिंग सुरू करण्यासाठी वर एक जोडा.",
diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.json
index 59d4d973..011a93b9 100644
--- a/client/src/i18n/locales/ms.json
+++ b/client/src/i18n/locales/ms.json
@@ -302,6 +302,7 @@
"showKey": "Tunjuk",
"hideKey": "sembunyikan",
"copyKey": "Salin",
+ "copyFullKey": "Salin kunci penuh",
"copiedKey": "disalin",
"baseUrl": "URL asas",
"endpointChat": "Sembang",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Tiada kunci API diperlukan",
"bearerTokenPlaceholder": "Token pembawa",
"pasteKeyPlaceholder": "tampal kekunci di sini",
+ "pasteSeveral": "Tampal beberapa",
"keylessHint": "Tiada kunci API diperlukan: tahap percuma penyedia ini adalah tanpa nama (kadar terhad mengikut IP).",
"enable": "Aktifkan",
"noProviderKeys": "Tiada kunci penyedia lagi. Tambah satu di atas untuk mula penghalaan.",
diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.json
index be296bf5..97465f22 100644
--- a/client/src/i18n/locales/my.json
+++ b/client/src/i18n/locales/my.json
@@ -302,6 +302,7 @@
"showKey": "ပြသမှု",
"hideKey": "ဖုံးကွယ်ပါ",
"copyKey": "မိတ္တူယူပါ",
+ "copyFullKey": "သော့အပြည့် ကူးယူရန်",
"copiedKey": "မိတ္တူယူပြီး",
"baseUrl": "အခြေခံ URL",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "API မလိုအပ်ပါ",
"bearerTokenPlaceholder": "သယ်ဆောင်သူတံဆိပ်",
"pasteKeyPlaceholder": "ဒီမှာ key ကို paste လုပ်ပါ",
+ "pasteSeveral": "အများအပြား ကူးထည့်ရန်",
"keylessHint": "API key မလိုအပ်ပါ: ဤဝန်ဆောင်မှုပေးသူ၏ အခမဲ့အဆင့်သည် အမည်မဖော်နိုင်ပါ (IP တစ်ခုချင်းစီအတွက် ဈေးနှုန်းကန့်သတ်ထားသည်)။",
"enable": "ဖွင့်ပါ",
"noProviderKeys": "Provider key မရှိသေးပါ။ လမ်းကြောင်းစတင်ရန် အထက်တွင် တစ်ခုထည့်ပါ။",
diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.json
index fcc85628..1de89c81 100644
--- a/client/src/i18n/locales/ne.json
+++ b/client/src/i18n/locales/ne.json
@@ -302,6 +302,7 @@
"showKey": "देखाउनुहोस्",
"hideKey": "लुकाउनुहोस्",
"copyKey": "प्रतिलिपि बनाउनुहोस्",
+ "copyFullKey": "पूरा कुञ्जी प्रतिलिपि गर्नुहोस्",
"copiedKey": "प्रतिलिपि बनाइएको",
"baseUrl": "आधार URL",
"endpointChat": "कुराकानी गर्नुहोस्",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "कुनै API कुञ्जी आवश्यक पर्दैन",
"bearerTokenPlaceholder": "वाहक टोकन",
"pasteKeyPlaceholder": "यहाँ कुञ्जी टाँस्नुहोस्",
+ "pasteSeveral": "धेरै टाँस्नुहोस्",
"keylessHint": "कुनै API कुञ्जी आवश्यक छैन: यस प्रदायकको नि: शुल्क स्तर अज्ञात छ (प्रति आईपी दर-सीमित)।",
"enable": "सक्षम पार्नुहोस्",
"noProviderKeys": "अहिले सम्म प्रदायक कुञ्जी छैन । मार्ग सुरु गर्न माथि एउटा थप्नुहोस्।",
diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.json
index 49f1a10d..1b84d9fd 100644
--- a/client/src/i18n/locales/nl.json
+++ b/client/src/i18n/locales/nl.json
@@ -302,6 +302,7 @@
"showKey": "Show",
"hideKey": "Verstop",
"copyKey": "Begrepen",
+ "copyFullKey": "Volledige sleutel kopiëren",
"copiedKey": "Gekopieerd",
"baseUrl": "Basis URL",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Geen API sleutel nodig",
"bearerTokenPlaceholder": "Dragertoken",
"pasteKeyPlaceholder": "Hier plak de toets",
+ "pasteSeveral": "Meerdere plakken",
"keylessHint": "Geen API sleutel nodig: de gratis laag van deze provider is anoniem (tariefbeperkt per IP).",
"enable": "Enable",
"noProviderKeys": "Nog geen provider-sleutels. Voeg er hierboven één toe om te beginnen met routeren.",
diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.json
index 80237dc0..d931c495 100644
--- a/client/src/i18n/locales/no.json
+++ b/client/src/i18n/locales/no.json
@@ -302,6 +302,7 @@
"showKey": "Show",
"hideKey": "Gjem deg",
"copyKey": "Kopiert",
+ "copyFullKey": "Kopier hele nøkkelen",
"copiedKey": "Kopiert",
"baseUrl": "Base URL",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Ingen API nøkkel trengs",
"bearerTokenPlaceholder": "Bærerbrikk",
"pasteKeyPlaceholder": "Lim inn nøkkel her",
+ "pasteSeveral": "Lim inn flere",
"keylessHint": "Ingen API nøkkel nødvendig: denne leverandørens gratis nivå er anonym (prisbegrenset per IP).",
"enable": "Enable",
"noProviderKeys": "Ingen leverandørnøkler ennå. Legg til en over for å starte rutingen.",
diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.json
index e9071523..6107fd13 100644
--- a/client/src/i18n/locales/or.json
+++ b/client/src/i18n/locales/or.json
@@ -302,6 +302,7 @@
"showKey": "ଦେଖାନ୍ତୁ",
"hideKey": "ଲୁଚାନ୍ତୁ",
"copyKey": "କପି",
+ "copyFullKey": "ସମ୍ପୂର୍ଣ୍ଣ କୀ କପି କରନ୍ତୁ",
"copiedKey": "କପି ହୋଇଛି",
"baseUrl": "ବେସ୍ URL",
"endpointChat": "ଚାଟ୍",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "କୌଣସି API କୀ ଆବଶ୍ୟକ ନାହିଁ",
"bearerTokenPlaceholder": "ବିୟରର୍ ଟୋକେନ୍",
"pasteKeyPlaceholder": "ଏଠାରେ କୀ ଲେପନ କରନ୍ତୁ",
+ "pasteSeveral": "ଏକାଧିକ ପେଷ୍ଟ କରନ୍ତୁ",
"keylessHint": "କୌଣସି API ଚାବି ଆବଶ୍ୟକ ନାହିଁ: ଏହି ପ୍ରଦାନକାରୀଙ୍କ ମାଗଣା ସ୍ତର ବେନାମୀ (ଆଇପି ପ୍ରତି ହାର-ସୀମିତ) ।",
"enable": "ସକ୍ଷମ କରନ୍ତୁ",
"noProviderKeys": "ଏପର୍ଯ୍ୟନ୍ତ କୌଣସି ପ୍ରଦାନକାରୀ କୀ ନାହିଁ। ରାଉଟିଂ ଆରମ୍ଭ କରିବାକୁ ଉପରୋକ୍ତ ଏକ ଯୋଡନ୍ତୁ।",
diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.json
index b4574470..8e16a4fe 100644
--- a/client/src/i18n/locales/pa.json
+++ b/client/src/i18n/locales/pa.json
@@ -302,6 +302,7 @@
"showKey": "ਦਿਖਾਓ",
"hideKey": "ਓਹਲੇ",
"copyKey": "ਕਾਪੀ ਕਰੋ",
+ "copyFullKey": "ਪੂਰੀ ਕੁੰਜੀ ਕਾਪੀ ਕਰੋ",
"copiedKey": "ਕਾਪੀ ਕੀਤਾ",
"baseUrl": "ਬੇਸ URL",
"endpointChat": "ਚੈਟ",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "API ਕੁੰਜੀ ਦੀ ਲੋੜ ਨਹੀਂ ਹੈ",
"bearerTokenPlaceholder": "ਬੇਅਰਰ ਟੋਕਨ",
"pasteKeyPlaceholder": "ਇੱਥੇ ਕੁੰਜੀ ਪੇਸਟ ਕਰੋ",
+ "pasteSeveral": "ਕਈ ਪੇਸਟ ਕਰੋ",
"keylessHint": "ਕੋਈ API ਕੁੰਜੀ ਦੀ ਲੋੜ ਨਹੀਂ: ਇਸ ਪ੍ਰਦਾਤਾ ਦਾ ਮੁਫਤ ਟੀਅਰ ਅਗਿਆਤ ਹੈ (ਦਰ-ਸੀਮਤ ਪ੍ਰਤੀ IP)।",
"enable": "ਯੋਗ ਕਰੋ",
"noProviderKeys": "ਅਜੇ ਤੱਕ ਕੋਈ ਪ੍ਰਦਾਤਾ ਕੁੰਜੀਆਂ ਨਹੀਂ ਹਨ। ਰੂਟਿੰਗ ਸ਼ੁਰੂ ਕਰਨ ਲਈ ਉੱਪਰ ਇੱਕ ਜੋੜੋ।",
diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.json
index 5162b336..04667a3a 100644
--- a/client/src/i18n/locales/pl.json
+++ b/client/src/i18n/locales/pl.json
@@ -302,6 +302,7 @@
"showKey": "Pokaż",
"hideKey": "Ukryj",
"copyKey": "Kopiuj",
+ "copyFullKey": "Kopiuj pełny klucz",
"copiedKey": "Skopiowano",
"baseUrl": "Podstawa URL",
"endpointChat": "Czat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Nie jest potrzebny klucz API",
"bearerTokenPlaceholder": "Token okaziciela",
"pasteKeyPlaceholder": "wklej tutaj klucz",
+ "pasteSeveral": "Wklej kilka",
"keylessHint": "Nie jest potrzebny klucz API: bezpłatna warstwa tego dostawcy jest anonimowa (ograniczona stawka na adres IP).",
"enable": "Włącz",
"noProviderKeys": "Nie ma jeszcze kluczy dostawcy. Dodaj jeden powyżej, aby rozpocząć wyznaczanie trasy.",
diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.json
index 0d59d614..ad7eaedb 100644
--- a/client/src/i18n/locales/pt-BR.json
+++ b/client/src/i18n/locales/pt-BR.json
@@ -302,6 +302,7 @@
"showKey": "Mostrar",
"hideKey": "Ocultar",
"copyKey": "Copiar",
+ "copyFullKey": "Copiar chave completa",
"copiedKey": "Copiado",
"baseUrl": "URL base",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Nenhuma chave de API necessária",
"bearerTokenPlaceholder": "Token Bearer",
"pasteKeyPlaceholder": "cole a chave aqui",
+ "pasteSeveral": "Colar várias",
"keylessHint": "Nenhuma chave de API necessária: o nível gratuito deste provedor é anônimo (com limite por IP).",
"enable": "Habilitar",
"noProviderKeys": "Ainda não há chaves de provedor. Adicione uma acima para começar o roteamento.",
diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.json
index d5d6431c..a5eeaba9 100644
--- a/client/src/i18n/locales/pt-PT.json
+++ b/client/src/i18n/locales/pt-PT.json
@@ -302,6 +302,7 @@
"showKey": "Programa",
"hideKey": "Esconde-te",
"copyKey": "Cópia",
+ "copyFullKey": "Copiar chave completa",
"copiedKey": "Copiado",
"baseUrl": "Base URL",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Não é preciso API chave",
"bearerTokenPlaceholder": "Ficha de portador",
"pasteKeyPlaceholder": "colar a chave aqui",
+ "pasteSeveral": "Colar várias",
"keylessHint": "Não é necessária API chave: o nível gratuito deste fornecedor é anónimo (limite de taxa por IP).",
"enable": "Permitir",
"noProviderKeys": "Ainda não há chaves do fornecedor. Adicione um acima para começar a rotear.",
diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.json
index d175df55..c6bbe004 100644
--- a/client/src/i18n/locales/ro.json
+++ b/client/src/i18n/locales/ro.json
@@ -302,6 +302,7 @@
"showKey": "Emisiune",
"hideKey": "Ascunde-te",
"copyKey": "Recepționat",
+ "copyFullKey": "Copiați cheia completă",
"copiedKey": "Copiat",
"baseUrl": "Baza URL",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Nu e nevoie de API cheie",
"bearerTokenPlaceholder": "Jeton de purtător",
"pasteKeyPlaceholder": "Lipește cheia aici",
+ "pasteSeveral": "Lipiți mai multe",
"keylessHint": "Nu este nevoie de API cheie: nivelul gratuit al acestui furnizor este anonim (cu tarif limitat pe IP).",
"enable": "Activează",
"noProviderKeys": "Încă nu am chei de furnizor. Adaugă unul mai sus pentru a începe rutarea.",
diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.json
index c66e9802..b0b446a9 100644
--- a/client/src/i18n/locales/ru.json
+++ b/client/src/i18n/locales/ru.json
@@ -302,6 +302,7 @@
"showKey": "Показать",
"hideKey": "Скрыть",
"copyKey": "Копировать",
+ "copyFullKey": "Скопировать ключ целиком",
"copiedKey": "Скопировано",
"baseUrl": "База URL",
"endpointChat": "Чат",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Ключ API не требуется.",
"bearerTokenPlaceholder": "Токен на предъявителя",
"pasteKeyPlaceholder": "вставьте сюда ключ",
+ "pasteSeveral": "Вставить несколько",
"keylessHint": "Ключ API не требуется: уровень бесплатного пользования этого провайдера является анонимным (ограничение скорости для каждого IP-адреса).",
"enable": "Включить",
"noProviderKeys": "Ключей провайдера пока нет. Добавьте один выше, чтобы начать маршрутизацию.",
diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.json
index 10ceedf4..4b33dfc4 100644
--- a/client/src/i18n/locales/si.json
+++ b/client/src/i18n/locales/si.json
@@ -302,6 +302,7 @@
"showKey": "පෙන්වන්න",
"hideKey": "සඟවන්න",
"copyKey": "පිටපත් කරන්න",
+ "copyFullKey": "සම්පූර්ණ යතුර පිටපත් කරන්න",
"copiedKey": "පිටපත් කර ඇත",
"baseUrl": "පදනම URL",
"endpointChat": "කතාබස් කරන්න",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "API යතුර අවශ්‍ය නොවේ",
"bearerTokenPlaceholder": "දරන්නා සංකේතය",
"pasteKeyPlaceholder": "මෙහි යතුර අලවන්න",
+ "pasteSeveral": "කිහිපයක් අලවන්න",
"keylessHint": "API යතුරක් අවශ්‍ය නොවේ: මෙම සැපයුම්කරුගේ නිදහස් ස්ථරය නිර්නාමිකයි (IP එකකට අනුපාතය-සීමිත).",
"enable": "සබල කරන්න",
"noProviderKeys": "තවමත් සපයන්නාගේ යතුරු නොමැත. මාර්ගගත කිරීම ආරම්භ කිරීමට ඉහත එකක් එක් කරන්න.",
diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.json
index 15de3ad9..00ee5609 100644
--- a/client/src/i18n/locales/sk.json
+++ b/client/src/i18n/locales/sk.json
@@ -302,6 +302,7 @@
"showKey": "Relácia",
"hideKey": "Schovaj sa",
"copyKey": "Rozumiem",
+ "copyFullKey": "Kopírovať celý kľúč",
"copiedKey": "Skopírované",
"baseUrl": "Základná URL",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Kľúč API nie je potrebný",
"bearerTokenPlaceholder": "Žetón na nositeľa",
"pasteKeyPlaceholder": "Vložiť kľúč sem",
+ "pasteSeveral": "Vložiť viac",
"keylessHint": "Kľúč API nie je potrebný: bezplatná úroveň tohto poskytovateľa je anonymná (obmedzená rýchlosťou na IP adresu).",
"enable": "Povoliť",
"noProviderKeys": "Zatiaľ žiadne kľúče od poskytovateľa. Pridajte jeden vyššie, aby ste začali smerovať.",
diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.json
index afa80af2..241e6fd5 100644
--- a/client/src/i18n/locales/sr.json
+++ b/client/src/i18n/locales/sr.json
@@ -302,6 +302,7 @@
"showKey": "Схов",
"hideKey": "Сакриј се",
"copyKey": "Копирај",
+ "copyFullKey": "Копирај цео кључ",
"copiedKey": "Копирано",
"baseUrl": "База URL",
"endpointChat": "Ћаскање",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Није потребан кључ API",
"bearerTokenPlaceholder": "Токен носиоца",
"pasteKeyPlaceholder": "налепите кључ овде",
+ "pasteSeveral": "Налепи више",
"keylessHint": "Није потребан API кључ: бесплатни ниво овог провајдера је анониман (ограничено на стопу по ИП-у).",
"enable": "Омогући",
"noProviderKeys": "Још нема кључева добављача. Додајте један изнад да бисте започели рутирање.",
diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.json
index 61529759..b1f4c3b6 100644
--- a/client/src/i18n/locales/sv.json
+++ b/client/src/i18n/locales/sv.json
@@ -302,6 +302,7 @@
"showKey": "Show",
"hideKey": "Göm dig",
"copyKey": "Kopiera",
+ "copyFullKey": "Kopiera hela nyckeln",
"copiedKey": "Kopierat",
"baseUrl": "Bas URL",
"endpointChat": "Chatt",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Ingen API nyckel behövs",
"bearerTokenPlaceholder": "Bärartoken",
"pasteKeyPlaceholder": "klistra in knappen här",
+ "pasteSeveral": "Klistra in flera",
"keylessHint": "Ingen API nyckel behövs: denna leverantörs gratisnivå är anonym (prisbegränsad per IP).",
"enable": "Aktivera",
"noProviderKeys": "Inga leverantörsnycklar än. Lägg till en ovan för att börja rutta.",
diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.json
index 863d7be0..f8b68b21 100644
--- a/client/src/i18n/locales/sw.json
+++ b/client/src/i18n/locales/sw.json
@@ -302,6 +302,7 @@
"showKey": "Onyesha",
"hideKey": "Ficha",
"copyKey": "Nakili",
+ "copyFullKey": "Nakili ufunguo kamili",
"copiedKey": "Imenakiliwa",
"baseUrl": "Msingi wa URL",
"endpointChat": "Soga",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Hakuna ufunguo wa API unaohitajika",
"bearerTokenPlaceholder": "Ishara ya mbebaji",
"pasteKeyPlaceholder": "bandika ufunguo hapa",
+ "pasteSeveral": "Bandika kadhaa",
"keylessHint": "Hakuna ufunguo wa API unaohitajika: kiwango cha bure cha mtoa huduma huyu hakijulikani (kidogo-kidogo kwa IP).",
"enable": "Wezesha",
"noProviderKeys": "Bado hakuna funguo za mtoa huduma. Ongeza moja hapo juu ili kuanza kuelekeza.",
diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.json
index e3bd992a..f3d8005f 100644
--- a/client/src/i18n/locales/ta.json
+++ b/client/src/i18n/locales/ta.json
@@ -302,6 +302,7 @@
"showKey": "காட்டு",
"hideKey": "மறை",
"copyKey": "நகலெடுக்கவும்",
+ "copyFullKey": "முழு விசையை நகலெடு",
"copiedKey": "நகலெடுக்கப்பட்டது",
"baseUrl": "அடிப்படை URL",
"endpointChat": "அரட்டை",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "API விசை தேவையில்லை",
"bearerTokenPlaceholder": "தாங்கி டோக்கன்",
"pasteKeyPlaceholder": "இங்கே விசையை ஒட்டவும்",
+ "pasteSeveral": "பலவற்றை ஒட்டவும்",
"keylessHint": "API விசை தேவையில்லை: இந்த வழங்குநரின் இலவச அடுக்கு அநாமதேயமானது (ஒவ்வொரு IPக்கும் வீதம் வரையறுக்கப்பட்டுள்ளது).",
"enable": "இயக்கு",
"noProviderKeys": "இதுவரை வழங்குநர் விசைகள் இல்லை. ரூட்டிங் தொடங்க மேலே ஒன்றைச் சேர்க்கவும்.",
diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.json
index 8d221a59..8c07bce4 100644
--- a/client/src/i18n/locales/te.json
+++ b/client/src/i18n/locales/te.json
@@ -302,6 +302,7 @@
"showKey": "చూపించు",
"hideKey": "దాచు",
"copyKey": "కాపీ చేయండి",
+ "copyFullKey": "పూర్తి కీని కాపీ చేయండి",
"copiedKey": "కాపీ చేయబడింది",
"baseUrl": "బేస్ URL",
"endpointChat": "చాట్ చేయండి",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "API కీ అవసరం లేదు",
"bearerTokenPlaceholder": "బేరర్ టోకెన్",
"pasteKeyPlaceholder": "కీని ఇక్కడ అతికించండి",
+ "pasteSeveral": "అనేకం అతికించండి",
"keylessHint": "API కీ అవసరం లేదు: ఈ ప్రొవైడర్ యొక్క ఉచిత శ్రేణి అనామకం (ప్రతి IPకి రేటు-పరిమితం).",
"enable": "ప్రారంభించు",
"noProviderKeys": "ఇంకా ప్రొవైడర్ కీలు లేవు. రూటింగ్ ప్రారంభించడానికి పైన ఒకదాన్ని జోడించండి.",
diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.json
index a8966365..3e912108 100644
--- a/client/src/i18n/locales/th.json
+++ b/client/src/i18n/locales/th.json
@@ -302,6 +302,7 @@
"showKey": "แสดง",
"hideKey": "ซ่อน",
"copyKey": "คัดลอก",
+ "copyFullKey": "คัดลอกคีย์ทั้งหมด",
"copiedKey": "คัดลอกแล้ว",
"baseUrl": "ฐาน URL",
"endpointChat": "แชท",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "ไม่จำเป็นต้องใช้คีย์ API",
"bearerTokenPlaceholder": "โทเค็นผู้ถือ",
"pasteKeyPlaceholder": "วางคีย์ที่นี่",
+ "pasteSeveral": "วางหลายรายการ",
"keylessHint": "ไม่จำเป็นต้องมีคีย์ API: Free Tier ของผู้ให้บริการรายนี้ไม่เปิดเผยตัวตน (จำกัดอัตราต่อ IP)",
"enable": "เปิดใช้งาน",
"noProviderKeys": "ยังไม่มีคีย์ผู้ให้บริการ เพิ่มหนึ่งรายการด้านบนเพื่อเริ่มการกำหนดเส้นทาง",
diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.json
index 6d1c1fa3..33b3f2cc 100644
--- a/client/src/i18n/locales/tl.json
+++ b/client/src/i18n/locales/tl.json
@@ -302,6 +302,7 @@
"showKey": "Ipakita",
"hideKey": "itago",
"copyKey": "Kopyahin",
+ "copyFullKey": "Kopyahin ang buong susi",
"copiedKey": "kinopya",
"baseUrl": "Base URL",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Hindi kailangan ng API key",
"bearerTokenPlaceholder": "Token ng tagapagdala",
"pasteKeyPlaceholder": "I-paste ang key dito",
+ "pasteSeveral": "I-paste ang marami",
"keylessHint": "Hindi kailangan ng API key: ang libreng tier ng provider na ito ay anonymous (rate-limited kada IP).",
"enable": "paganahin",
"noProviderKeys": "Wala pang provider keys. Magdagdag ng isa sa itaas para simulan ang routing.",
diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.json
index 34748263..fb0fbb7d 100644
--- a/client/src/i18n/locales/tr.json
+++ b/client/src/i18n/locales/tr.json
@@ -302,6 +302,7 @@
"showKey": "Göster",
"hideKey": "Gizle",
"copyKey": "Kopyala",
+ "copyFullKey": "Anahtarın tamamını kopyala",
"copiedKey": "Kopyalandı",
"baseUrl": "Temel URL",
"endpointChat": "Sohbet",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "API anahtarına gerek yok",
"bearerTokenPlaceholder": "Hamiline ait jeton",
"pasteKeyPlaceholder": "anahtarı buraya yapıştırın",
+ "pasteSeveral": "Birkaçını yapıştır",
"keylessHint": "API anahtarına gerek yok: Bu sağlayıcının ücretsiz katmanı anonimdir (IP başına hız sınırlıdır).",
"enable": "Etkinleştir",
"noProviderKeys": "Henüz sağlayıcı anahtarı yok. Yönlendirmeyi başlatmak için yukarıya bir tane ekleyin.",
diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.json
index 397e47c2..78527037 100644
--- a/client/src/i18n/locales/uk.json
+++ b/client/src/i18n/locales/uk.json
@@ -302,6 +302,7 @@
"showKey": "Показати",
"hideKey": "Сховати",
"copyKey": "Копія",
+ "copyFullKey": "Скопіювати ключ повністю",
"copiedKey": "Скопійовано",
"baseUrl": "Основа URL",
"endpointChat": "Чат",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Ключ API не потрібен",
"bearerTokenPlaceholder": "Токен на пред'явника",
"pasteKeyPlaceholder": "вставте ключ сюди",
+ "pasteSeveral": "Вставити кілька",
"keylessHint": "Ключ API не потрібен: безкоштовний рівень цього постачальника є анонімним (швидкість обмежена для IP-адреси).",
"enable": "Увімкнути",
"noProviderKeys": "Ключів провайдера ще немає. Додайте один вище, щоб розпочати маршрутизацію.",
diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.json
index e3af23ec..18e0c15d 100644
--- a/client/src/i18n/locales/ur.json
+++ b/client/src/i18n/locales/ur.json
@@ -302,6 +302,7 @@
"showKey": "دکھائیں۔",
"hideKey": "چھپائیں",
"copyKey": "کاپی",
+ "copyFullKey": "مکمل کلید کاپی کریں",
"copiedKey": "کاپی",
"baseUrl": "بیس URL",
"endpointChat": "گپ شپ",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "API کلید کی ضرورت نہیں ہے۔",
"bearerTokenPlaceholder": "بیئرر ٹوکن",
"pasteKeyPlaceholder": "یہاں کلید چسپاں کریں۔",
+ "pasteSeveral": "کئی چسپاں کریں",
"keylessHint": "API کلید کی ضرورت نہیں ہے: اس فراہم کنندہ کا مفت درجہ گمنام ہے (فی IP کی شرح محدود)۔",
"enable": "فعال کریں۔",
"noProviderKeys": "ابھی تک کوئی فراہم کنندہ کیز نہیں ہیں۔ روٹنگ شروع کرنے کے لیے اوپر ایک شامل کریں۔",
diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.json
index ed6014ee..2920a461 100644
--- a/client/src/i18n/locales/uz.json
+++ b/client/src/i18n/locales/uz.json
@@ -302,6 +302,7 @@
"showKey": "Ko'rsatish",
"hideKey": "Yashirish",
"copyKey": "Nusxalash",
+ "copyFullKey": "To'liq kalitni nusxalash",
"copiedKey": "Ko‘chirildi",
"baseUrl": "Baza URL",
"endpointChat": "Chat",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "API kaliti kerak emas",
"bearerTokenPlaceholder": "Tashuvchi belgisi",
"pasteKeyPlaceholder": "kalitni shu yerga qo'ying",
+ "pasteSeveral": "Bir nechtasini joylang",
"keylessHint": "API kaliti kerak emas: bu provayderning bepul darajasi anonimdir (har bir IP uchun tarif cheklangan).",
"enable": "Yoqish",
"noProviderKeys": "Hozircha provayder kalitlari yo'q. Marshrutlashni boshlash uchun yuqoridagi birini qo'shing.",
diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.json
index a723578d..e01557cf 100644
--- a/client/src/i18n/locales/vi.json
+++ b/client/src/i18n/locales/vi.json
@@ -302,6 +302,7 @@
"showKey": "Hiển thị",
"hideKey": "Ẩn",
"copyKey": "Sao chép",
+ "copyFullKey": "Sao chép toàn bộ khóa",
"copiedKey": "Đã sao chép",
"baseUrl": "Căn cứ URL",
"endpointChat": "Trò chuyện",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Không cần khóa API",
"bearerTokenPlaceholder": "Mã thông báo mang",
"pasteKeyPlaceholder": "dán chìa khóa vào đây",
+ "pasteSeveral": "Dán nhiều khóa",
"keylessHint": "Không cần khóa API: cấp miễn phí của nhà cung cấp này là ẩn danh (giới hạn tỷ lệ trên mỗi IP).",
"enable": "Kích hoạt",
"noProviderKeys": "Chưa có khóa nhà cung cấp nào. Thêm một ở trên để bắt đầu định tuyến.",
diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.json
index be9ad043..48f03264 100644
--- a/client/src/i18n/locales/yo.json
+++ b/client/src/i18n/locales/yo.json
@@ -302,6 +302,7 @@
"showKey": "Fihan",
"hideKey": "Tọju",
"copyKey": "Daakọ",
+ "copyFullKey": "Da bọtini kíkún kọ",
"copiedKey": "Ti daakọ",
"baseUrl": "Mimọ URL",
"endpointChat": "Wiregbe",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "Ko si bọtini API nilo",
"bearerTokenPlaceholder": "Aami oniduro",
"pasteKeyPlaceholder": "lẹẹ bọtini nibi",
+ "pasteSeveral": "Lẹ̀ ọ̀pọ̀lọpọ̀ mọ́",
"keylessHint": "Ko si bọtini API nilo: ipele ọfẹ ti olupese yii jẹ ailorukọ (opin-opin fun IP).",
"enable": "Mu ṣiṣẹ",
"noProviderKeys": "Ko si awọn bọtini olupese sibẹsibẹ. Ṣafikun ọkan loke lati bẹrẹ ipa-ọna.",
diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.json
index 57eeef90..8b752541 100644
--- a/client/src/i18n/locales/zh-CN.json
+++ b/client/src/i18n/locales/zh-CN.json
@@ -302,6 +302,7 @@
"showKey": "显示",
"hideKey": "隐藏",
"copyKey": "复制",
+ "copyFullKey": "复制完整密钥",
"copiedKey": "已复制",
"baseUrl": "Base URL",
"endpointChat": "对话",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "无需 API 密钥",
"bearerTokenPlaceholder": "Bearer 令牌",
"pasteKeyPlaceholder": "在此粘贴密钥",
+ "pasteSeveral": "粘贴多个",
"keylessHint": "无需 API 密钥:该提供方的免费层是匿名的(按 IP 限流)。",
"enable": "启用",
"noProviderKeys": "尚无提供方密钥。在上方添加一个即可开始路由。",
diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.json
index 45a9f703..2e7fded0 100644
--- a/client/src/i18n/locales/zh-TW.json
+++ b/client/src/i18n/locales/zh-TW.json
@@ -302,6 +302,7 @@
"showKey": "顯示",
"hideKey": "隱藏",
"copyKey": "複製",
+ "copyFullKey": "複製完整金鑰",
"copiedKey": "已複製",
"baseUrl": "基礎 URL",
"endpointChat": "對話",
@@ -399,6 +400,7 @@
"noKeyNeededPlaceholder": "無需 API 金鑰",
"bearerTokenPlaceholder": "Bearer Token",
"pasteKeyPlaceholder": "在此貼上金鑰",
+ "pasteSeveral": "貼上多個",
"keylessHint": "無需 API 金鑰:該提供者的免費層是匿名的(按 IP 限制速率)。",
"enable": "啟用",
"noProviderKeys": "尚無提供者金鑰。在上方新增一個即可開始路由。",
diff --git a/server/src/__tests__/routes/custom-provider-multikey.test.ts b/server/src/__tests__/routes/custom-provider-multikey.test.ts
index 5c174e59..0a219a99 100644
--- a/server/src/__tests__/routes/custom-provider-multikey.test.ts
+++ b/server/src/__tests__/routes/custom-provider-multikey.test.ts
@@ -284,6 +284,46 @@ describe('multiple keys per custom endpoint (#619)', () => {
expect((res.body as any).error.message).toBe('model or models is required');
});
+ // #705: every endpoint used to default to the literal label 'Custom', so the
+ // panels that name a key by its label alone showed identical rows for every
+ // relay the operator ran.
+ it('names an unlabelled endpoint after its host', async () => {
+ await post(app, '/api/keys/custom', { baseUrl: ENDPOINT, model: 'relay-model', apiKey: 'first-secret' });
+ await post(app, '/api/keys/custom', { baseUrl: 'http://127.0.0.1:18081/v1', model: 'other-model', apiKey: 'other-secret' });
+
+ expect(customKeys()[0]!.label).toBe('127.0.0.1:18080');
+ expect(customKeys('http://127.0.0.1:18081/v1')[0]!.label).toBe('127.0.0.1:18081');
+ });
+
+ it('still prefers a label the operator supplied', async () => {
+ await post(app, '/api/keys/custom', { baseUrl: ENDPOINT, model: 'relay-model', apiKey: 'first-secret', label: 'My relay' });
+
+ expect(customKeys()[0]!.label).toBe('My relay');
+ });
+
+ // The per-key switch the dashboard grew in #705 is only worth anything if
+ // routing honours it, which it has all along.
+ it('drops a disabled credential out of the endpoint rotation', async () => {
+ await post(app, '/api/keys/custom', { baseUrl: ENDPOINT, model: 'relay-model', apiKey: 'first-secret' });
+ await post(app, '/api/keys/custom', { baseUrl: ENDPOINT, apiKey: 'second-secret' });
+ const [first, second] = customKeys();
+
+ await request(app, 'PATCH', `/api/keys/${second!.id}`, { enabled: false });
+
+ const modelDbId = chatModel('relay-model')!.id;
+ const used = new Set<string>();
+ for (let i = 0; i < 6; i++) {
+ const route = routePinnedModel(modelDbId);
+ used.add(route!.apiKey);
+ route!.release?.();
+ }
+ expect([...used]).toEqual(['first-secret']);
+
+ // ...and the endpoint stops routing entirely once the last one is off.
+ await request(app, 'PATCH', `/api/keys/${first!.id}`, { enabled: false });
+ expect(routePinnedModel(modelDbId)).toBeNull();
+ });
+
it('keeps a spare key when the model it arrived with is deleted', async () => {
await post(app, '/api/keys/custom', { baseUrl: ENDPOINT, model: 'relay-model', apiKey: 'first-secret' });
await post(app, '/api/keys/custom', { baseUrl: ENDPOINT, model: 'placeholder', apiKey: 'second-secret' });
diff --git a/server/src/__tests__/routes/keys-reveal.test.ts b/server/src/__tests__/routes/keys-reveal.test.ts
new file mode 100644
index 00000000..a9fd9e38
--- /dev/null
+++ b/server/src/__tests__/routes/keys-reveal.test.ts
@@ -0,0 +1,87 @@
+import { describe, it, expect, beforeAll, beforeEach } from 'vitest';
+import type { Express } from 'express';
+import { createApp } from '../../app.js';
+import { initDb, getDb } from '../../db/index.js';
+import { mintDashboardToken } from '../helpers/auth.js';
+
+// #705: the dashboard only ever renders a masked key, and reading one back meant
+// exporting every key to a file. Revealing ONE key is the same privilege, so it
+// carries the same gate: the session is not enough, the password is re-checked.
+
+let app: Express;
+let token: string;
+
+async function request(path: string, password?: string) {
+ const server = app.listen(0);
+ const addr = server.address() as { port: number };
+ const headers: Record<string, string> = { Authorization: `Bearer ${token}` };
+ if (password !== undefined) headers['x-reauth-password'] = password;
+ const res = await fetch(`http://127.0.0.1:${addr.port}${path}`, { method: 'POST', headers });
+ const body = await res.json().catch(() => null);
+ server.close();
+ return { status: res.status, body: body as any };
+}
+
+async function addKey(key = 'gsk_testkey123') {
+ const server = app.listen(0);
+ const addr = server.address() as { port: number };
+ const res = await fetch(`http://127.0.0.1:${addr.port}/api/keys`, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` },
+ body: JSON.stringify({ platform: 'groq', key }),
+ });
+ const body = await res.json() as { id: number };
+ server.close();
+ return body.id;
+}
+
+describe('Reveal one key — password re-verification (#705)', () => {
+ beforeAll(() => {
+ process.env.ENCRYPTION_KEY = '0'.repeat(64);
+ initDb(':memory:');
+ app = createApp();
+ token = mintDashboardToken();
+ });
+
+ beforeEach(() => {
+ getDb().prepare('DELETE FROM api_keys').run();
+ });
+
+ it('returns the plaintext key for the right password', async () => {
+ const id = await addKey('gsk_the_real_secret');
+ const { status, body } = await request(`/api/keys/${id}/reveal`, 'password123');
+ expect(status).toBe(200);
+ expect(body.key).toBe('gsk_the_real_secret');
+ });
+
+ it('refuses a session that does not re-enter the password', async () => {
+ const id = await addKey();
+ const { status, body } = await request(`/api/keys/${id}/reveal`);
+ expect(status).toBe(403);
+ expect(body.error.type).toBe('authentication_error');
+ expect(body.key).toBeUndefined();
+ });
+
+ it('refuses the wrong password', async () => {
+ const id = await addKey();
+ const { status, body } = await request(`/api/keys/${id}/reveal`, 'not-the-password');
+ expect(status).toBe(403);
+ expect(body.key).toBeUndefined();
+ });
+
+ it('checks the password before it looks the key up', async () => {
+ // An unauthenticated caller learns nothing about which ids exist.
+ const { status } = await request('/api/keys/99999/reveal');
+ expect(status).toBe(403);
+ });
+
+ it('404s an unknown key once the password is accepted', async () => {
+ const { status } = await request('/api/keys/99999/reveal', 'password123');
+ expect(status).toBe(404);
+ });
+
+ it('rejects a non-numeric id', async () => {
+ const { status } = await request('/api/keys/abc/reveal', 'password123');
+ expect(status).toBe(400);
+ });
+});
diff --git a/server/src/__tests__/routes/keys.test.ts b/server/src/__tests__/routes/keys.test.ts
index c7490a53..68d8e624 100644
--- a/server/src/__tests__/routes/keys.test.ts
+++ b/server/src/__tests__/routes/keys.test.ts
@@ -309,4 +309,54 @@ describe('Keys API', () => {
expect(malformed.body.error.message).toBe('Invalid JSON format');
});
});
+
+ // #705: the dashboard only ever had the platform-wide switch, which for the
+ // Custom group meant every endpoint the operator runs. These are the two
+ // scopes it now offers, kept honest against each other.
+ describe('enable scope', () => {
+ async function addKey(platform: string, key: string) {
+ const { body } = await request(app, 'POST', '/api/keys', { platform, key });
+ return body.id as number;
+ }
+ const enabledById = async () => {
+ const { body } = await request(app, 'GET', '/api/keys');
+ return Object.fromEntries((body as any[]).map(k => [k.id, k.enabled]));
+ };
+
+ it('PATCH /api/keys/:id disables one key and leaves its siblings alone', async () => {
+ const first = await addKey('groq', 'gsk_first_key_123');
+ const second = await addKey('groq', 'gsk_second_key_456');
+
+ const { status } = await request(app, 'PATCH', `/api/keys/${first}`, { enabled: false });
+
+ expect(status).toBe(200);
+ expect(await enabledById()).toEqual({ [first]: false, [second]: true });
+ });
+
+ it('PATCH /api/keys/platform/:platform still writes every key of that platform', async () => {
+ const first = await addKey('groq', 'gsk_first_key_123');
+ const second = await addKey('groq', 'gsk_second_key_456');
+ const other = await addKey('cerebras', 'csk_other_key_789');
+
+ const { body } = await request(app, 'PATCH', '/api/keys/platform/groq', { enabled: false });
+
+ expect(body.updatedKeys).toBe(2);
+ expect(await enabledById()).toEqual({ [first]: false, [second]: false, [other]: true });
+ });
+
+ it('re-enables a single key of a platform that was switched off wholesale', async () => {
+ const first = await addKey('groq', 'gsk_first_key_123');
+ const second = await addKey('groq', 'gsk_second_key_456');
+ await request(app, 'PATCH', '/api/keys/platform/groq', { enabled: false });
+
+ await request(app, 'PATCH', `/api/keys/${second}`, { enabled: true });
+
+ expect(await enabledById()).toEqual({ [first]: false, [second]: true });
+ });
+
+ it('404s a key that does not exist', async () => {
+ const { status } = await request(app, 'PATCH', '/api/keys/99999', { enabled: false });
+ expect(status).toBe(404);
+ });
+ });
});
diff --git a/server/src/__tests__/services/provider-quota.test.ts b/server/src/__tests__/services/provider-quota.test.ts
index b11a69dd..f6e8f18e 100644
--- a/server/src/__tests__/services/provider-quota.test.ts
+++ b/server/src/__tests__/services/provider-quota.test.ts
@@ -76,6 +76,34 @@ describe('provider-quota: record + read round-trip', () => {
expect(row!.limit).toBe(1000);
expect(row!.remaining).toBe(950);
});
+
+ // #705: the panel rendered a bare "key #7", which names nothing an operator
+ // recognises once a provider holds several keys.
+ it('carries the label of the key the state belongs to', () => {
+ const db = getDb();
+ db.prepare(`
+ INSERT INTO api_keys (id, platform, label, encrypted_key, iv, auth_tag, status, enabled)
+ VALUES (41, 'groq', 'Work account', 'x', 'y', 'z', 'unknown', 1)
+ `).run();
+ recordQuotaObservation({
+ platform: 'groq', keyId: 41, quotaPoolKey: 'groq::account',
+ metric: 'requests', limit: 10, remaining: 1, source: 'header',
+ });
+
+ const row = getQuotaStateForKeys().find(s => s.keyId === 41);
+ expect(row!.keyLabel).toBe('Work account');
+ });
+
+ it('leaves the label null when the key row is gone', () => {
+ recordQuotaObservation({
+ platform: 'groq', keyId: 4242, quotaPoolKey: 'groq::account',
+ metric: 'requests', limit: 10, remaining: 1, source: 'header',
+ });
+
+ const row = getQuotaStateForKeys().find(s => s.keyId === 4242);
+ expect(row).toBeDefined();
+ expect(row!.keyLabel).toBeNull();
+ });
});
describe('provider-quota: parse from response headers (shared parseRetryAfterMs)', () => {
diff --git a/server/src/routes/keys.ts b/server/src/routes/keys.ts
index 64476fbb..384f9fc0 100644
--- a/server/src/routes/keys.ts
+++ b/server/src/routes/keys.ts
@@ -400,6 +400,39 @@ keysRouter.get('/export', (req: Request, res: Response) => {
res.json(jsonExport);
});
+// Reveal ONE key in plaintext, so the dashboard can offer a copy action for a
+// credential it otherwise only ever shows masked (#705). Exporting every key to
+// a file was the only way to read one back, which is a poor trade for "what is
+// the key on this row again?". Gated exactly like the export it narrows: the
+// session alone is not enough, the password has to be re-entered.
+keysRouter.post('/:id/reveal', (req: Request, res: Response) => {
+ const user = (req as any).user;
+ const password = req.headers['x-reauth-password'] as string | undefined;
+ if (!password || !verifyCredentials(user.email, password)) {
+ res.status(403).json({ error: { message: 'Password verification required to reveal a key', type: 'authentication_error' } });
+ return;
+ }
+
+ const id = parseInt(req.params.id as string, 10);
+ if (isNaN(id)) {
+ res.status(400).json({ error: { message: 'Invalid key ID' } });
+ return;
+ }
+
+ const row = getDb().prepare('SELECT encrypted_key, iv, auth_tag FROM api_keys WHERE id = ?')
+ .get(id) as { encrypted_key: string; iv: string; auth_tag: string } | undefined;
+ if (!row) {
+ res.status(404).json({ error: { message: 'Key not found' } });
+ return;
+ }
+
+ try {
+ res.json({ key: decrypt(row.encrypted_key, row.iv, row.auth_tag) });
+ } catch {
+ res.status(500).json({ error: { message: 'This key could not be decrypted. It was stored with a different ENCRYPTION_KEY.' } });
+ }
+});
+
// Add a key
keysRouter.post('/', (req: Request, res: Response) => {
const parsed = addKeySchema.safeParse(req.body);
diff --git a/server/src/services/custom-endpoint.ts b/server/src/services/custom-endpoint.ts
index 6053cb7f..17653aa3 100644
--- a/server/src/services/custom-endpoint.ts
+++ b/server/src/services/custom-endpoint.ts
@@ -53,12 +53,27 @@ function touch(db: Db, id: number, label: string | undefined): void {
.run(label ?? null, id);
}
+/**
+ * The name a custom endpoint takes when the operator did not give it one: its
+ * host and port. Every endpoint used to default to the literal 'Custom', so the
+ * panels that identify a key by label alone (analytics, cooldowns, quota
+ * signals) showed a column of identical rows once you ran more than one relay
+ * (#705). The host is what actually tells two endpoints apart.
+ */
+function defaultCustomEndpointLabel(baseUrl: string): string {
+ try {
+ return new URL(baseUrl).host || 'Custom';
+ } catch {
+ return 'Custom';
+ }
+}
+
function insertKey(db: Db, baseUrl: string, secret: string, label: string | undefined): ResolvedEndpointKey {
const { encrypted, iv, authTag } = encrypt(secret);
const r = db.prepare(`
INSERT INTO api_keys (platform, label, encrypted_key, iv, auth_tag, status, enabled, base_url)
VALUES ('custom', ?, ?, ?, ?, 'unknown', 1, ?)
- `).run(label ?? 'Custom', encrypted, iv, authTag, baseUrl);
+ `).run(label ?? defaultCustomEndpointLabel(baseUrl), encrypted, iv, authTag, baseUrl);
return { keyId: Number(r.lastInsertRowid), storedKey: secret, created: true };
}
diff --git a/server/src/services/provider-quota.ts b/server/src/services/provider-quota.ts
index 1cb15d44..81873f71 100644
--- a/server/src/services/provider-quota.ts
+++ b/server/src/services/provider-quota.ts
@@ -448,6 +448,9 @@ export function getQuotaStateForKeys(): QuotaObservationView[] {
SELECT
pqs.platform,
pqs.key_id AS keyId,
+ -- The panel identifies a row by its key. A bare "key #7" says nothing, so
+ -- carry the operator's own name for it (#705).
+ k.label AS keyLabel,
pqs.quota_pool_key AS quotaPoolKey,
pqs.metric,
pqs.limit_value AS "limit",
@@ -467,6 +470,7 @@ export function getQuotaStateForKeys(): QuotaObservationView[] {
latest.raw_json AS rawJson,
latest.created_at AS createdAt
FROM provider_quota_state pqs
+ LEFT JOIN api_keys k ON k.id = pqs.key_id
LEFT JOIN latest
ON latest.platform = pqs.platform
AND latest.key_id = pqs.key_id
diff --git a/shared/types.ts b/shared/types.ts
index 0822e5a7..50139e3d 100644
--- a/shared/types.ts
+++ b/shared/types.ts
@@ -423,6 +423,8 @@ export type QuotaObservationSource = 'header' | 'quota_api' | 'error_body' | 'lo
export interface ProviderQuotaState {
platform: Platform;
keyId: number;
+ /** The key's operator-facing label, when the row still names a live key. */
+ keyLabel?: string | null;
quotaPoolKey: string;
metric: QuotaMetric;
limit: number | null;