-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwelcome.html
More file actions
901 lines (816 loc) · 41.2 KB
/
Copy pathwelcome.html
File metadata and controls
901 lines (816 loc) · 41.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome to Pantheon</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
background: #020617;
color: #e2e8f0;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* ── Header ── */
header {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
border-bottom: 1px solid #1e293b;
padding: 1.5rem 2rem;
text-align: center;
}
header .logo-wrap {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
margin-bottom: 0.5rem;
}
header .logo-wrap img {
width: 58px;
height: 58px;
border-radius: 14px;
}
header .logo-wrap h1 {
display: flex;
align-items: center;
gap: 0.5rem;
}
header h1 {
font-size: 2rem;
font-weight: 700;
background: linear-gradient(135deg, #22d3ee, #34d399);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
letter-spacing: -0.025em;
}
.beta-badge {
display: inline-block;
font-size: 0.65rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
padding: 0.2rem 0.5rem;
border-radius: 6px;
background: linear-gradient(135deg, #f59e0b, #d97706);
color: #0f172a;
-webkit-text-fill-color: #0f172a;
vertical-align: middle;
line-height: 1;
}
header p {
color: #94a3b8;
font-size: 1rem;
}
/* ── Steps bar ── */
.steps-bar {
display: flex;
justify-content: center;
gap: 0.25rem;
padding: 1rem 1rem 0;
max-width: 700px;
margin: 0 auto;
}
.step-dot {
flex: 1;
max-width: 120px;
text-align: center;
padding: 0.4rem 0.5rem;
border-radius: 8px 8px 0 0;
font-size: 0.75rem;
font-weight: 600;
color: #475569;
background: #0f172a;
border-bottom: 2px solid #1e293b;
transition: all 0.3s;
}
.step-dot.active {
color: #22d3ee;
background: #1e293b;
border-bottom: 2px solid #22d3ee;
}
.step-dot.done {
color: #6ee7b7;
border-bottom: 2px solid #0d9488;
}
.step-dot .num {
display: inline-block;
width: 20px;
height: 20px;
line-height: 20px;
border-radius: 50%;
background: #1e293b;
font-size: 0.7rem;
margin-right: 0.3rem;
}
.step-dot.active .num { background: #0e7490; color: white; }
.step-dot.done .num { background: #065f46; color: #6ee7b7; }
/* ── Page container ── */
.container { max-width: 720px; margin: 0 auto; padding: 2rem; flex: 1; width: 100%; }
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.page-title { font-size: 1.35rem; font-weight: 700; color: #f1f5f9; margin-bottom: 0.3rem; }
.page-desc { color: #94a3b8; font-size: 0.9rem; margin-bottom: 1.25rem; line-height: 1.5; }
/* ── Cards ── */
.card {
background: #0f172a;
border: 1px solid #1e293b;
border-radius: 12px;
padding: 1.25rem 1.5rem;
margin-bottom: 0.75rem;
}
.card-title { font-weight: 600; font-size: 1rem; margin-bottom: 0.5rem; color: #f1f5f9; }
.card-desc { color: #64748b; font-size: 0.85rem; line-height: 1.5; }
/* ── Tip carousel ── */
.tip-box {
background: linear-gradient(135deg, rgba(6, 78, 59, 0.2), rgba(8, 51, 68, 0.2));
border: 1px solid #0d9488;
border-radius: 12px;
padding: 1.5rem;
text-align: center;
min-height: 120px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: all 0.5s ease;
}
.tip-box .tip-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.tip-box .tip-label { color: #22d3ee; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.tip-box .tip-text { color: #94a3b8; font-size: 0.85rem; line-height: 1.5; max-width: 400px; }
.tip-dots { display: flex; gap: 0.4rem; justify-content: center; margin-top: 1rem; }
.tip-dot {
width: 8px; height: 8px; border-radius: 50%;
background: #1e293b; cursor: pointer; transition: all 0.3s;
}
.tip-dot.active { background: #22d3ee; width: 24px; border-radius: 4px; }
/* ── Forms ── */
.form-group { margin-bottom: 0.75rem; }
.form-label { display: block; color: #94a3b8; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
select, input[type="text"] {
width: 100%; max-width: 450px;
background: #1e293b; color: #e2e8f0;
border: 1px solid #334155; border-radius: 8px;
padding: 0.6rem 0.8rem; font-size: 0.9rem;
outline: none; cursor: pointer;
}
select:focus, input[type="text"]:focus { border-color: #22d3ee; }
/* ── Buttons ── */
.btn {
display: inline-flex; align-items: center; gap: 0.4rem;
padding: 0.5rem 1rem; border-radius: 8px;
font-size: 0.85rem; font-weight: 600;
border: none; cursor: pointer; text-decoration: none;
transition: all 0.15s;
}
.btn-primary { background: #0e7490; color: white; }
.btn-primary:hover { background: #0891b2; box-shadow: 0 0 12px rgba(34, 211, 238, 0.3); }
.btn-secondary { background: #1e293b; color: #94a3b8; border: 1px solid #334155; }
.btn-secondary:hover { background: #334155; color: #e2e8f0; }
.btn-success { background: #065f46; color: #6ee7b7; }
.btn-success:hover { background: #0d9488; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.nav-buttons { display: flex; gap: 0.75rem; justify-content: space-between; margin-top: 1.5rem; }
/* ── Provider helpers ── */
.key-helpers {
display: none; margin-top: 0.5rem;
background: #0f172a; border: 1px solid #1e293b;
border-radius: 8px; padding: 0.6rem 0.8rem;
font-size: 0.8rem; color: #94a3b8;
}
.key-helpers ol { margin: 0.4rem 0 0 1.2rem; padding: 0; line-height: 1.6; }
.key-helpers code {
background: #1e293b; padding: 1px 6px; border-radius: 4px; color: #22d3ee;
}
.status-msg {
display: none; margin-bottom: 0.5rem;
padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 0.85rem;
}
/* ── Launch progress ── */
.launch-step { padding: 0.4rem 0; font-size: 0.85rem; color: #94a3b8; transition: opacity 0.3s; }
.launch-step.done { color: #6ee7b7; }
.launch-step.active { color: #22d3ee; }
.launch-spinner { display: inline-block; width: 1.2rem; }
/* ── Footer ── */
footer { text-align: center; padding: 2rem; color: #475569; font-size: 0.8rem; border-top: 1px solid #1e293b; }
footer a { color: #22d3ee; text-decoration: none; }
</style>
</head>
<body>
<header>
<div class="logo-wrap">
<img src="pantheon-logo.png" alt="Pantheon" onerror="this.style.display='none'">
<h1>Pantheon <span class="beta-badge">Beta</span></h1>
</div>
<p>Your private AI operating system is almost ready</p>
</header>
<!-- Steps indicator -->
<div class="steps-bar">
<div class="step-dot active" id="sdot-1"><span class="num">1</span> Welcome</div>
<div class="step-dot" id="sdot-2"><span class="num">2</span> API Keys</div>
<div class="step-dot" id="sdot-3"><span class="num">3</span> Launch</div>
<div class="step-dot" id="sdot-4"><span class="num">4</span> Connect</div>
</div>
<div class="container">
<!-- ════════════════════════════════════════════ PAGE 1: Welcome ═══ -->
<div class="page active" id="page-1">
<div class="card" style="text-align:center;padding:2rem;border-color:#0d9488;">
<div style="font-size:3rem;margin-bottom:0.75rem;">⛩️</div>
<div style="font-size:1.1rem;font-weight:600;color:#f1f5f9;margin-bottom:0.5rem;">Welcome to Pantheon!</div>
<div style="color:#94a3b8;font-size:0.9rem;line-height:1.6;max-width:450px;margin:0 auto;">
Your private AI operating system. Your gods run on your machine, your data stays yours.
</div>
<div style="margin-top:0.5rem;font-size:0.75rem;color:#f59e0b;font-weight:600;letter-spacing:0.04em;">🛠️ Setup Wizard — Beta — things may shift as we polish the experience</div>
</div>
<div style="margin-top:1rem;display:flex;flex-direction:column;gap:0.6rem;">
<div class="card" style="display:flex;align-items:center;gap:0.75rem;">
<div style="font-size:1.5rem;">✅</div>
<div><strong>Hermes Agent</strong><br><span style="color:#64748b;font-size:0.85rem;">Runtime engine installed and ready</span></div>
</div>
<div class="card" style="display:flex;align-items:center;gap:0.75rem;">
<div style="font-size:1.5rem;">✅</div>
<div><strong>Pantheon Repository</strong><br><span style="color:#64748b;font-size:0.85rem;">Cloned and up to date</span></div>
</div>
</div>
<div class="nav-buttons">
<div></div>
<button class="btn btn-primary btn-lg" onclick="goPage(2)">Get Started →</button>
</div>
</div>
<!-- ════════════════════════════════════════════ PAGE 2: API Keys ═══ -->
<div class="page" id="page-2">
<div class="page-title">🔑 Add Your API Keys</div>
<div class="page-desc">Pick a provider and paste your key. Pantheon needs at least one LLM and one embedding provider to work.</div>
<!-- LLM Provider -->
<div class="card">
<div class="card-title">🤖 LLM Provider</div>
<div class="card-desc">Choose where your gods get their brain power.</div>
<div class="form-group" style="margin-top:0.75rem;">
<label class="form-label">Provider</label>
<select id="provider-select" onchange="onProviderChange()">
<option value="">— Select a provider —</option>
<optgroup label="⭐ Featured">
<option value="opencode-go">🟢 OpenCode Go — $10/mo flat</option>
<option value="openrouter">🟡 OpenRouter — pay-as-you-go, 200+ models</option>
<option value="ollama">🟣 Ollama — free, local, offline</option>
<option value="ollama-cloud">🔵 Ollama Cloud — hosted open models</option>
</optgroup>
<optgroup label="📋 All Providers">
<option value="anthropic">Anthropic — Claude</option>
<option value="deepseek">DeepSeek</option>
<option value="google-gemini">Google Gemini</option>
<option value="groq">Groq — fast, free tier</option>
<option value="huggingface">Hugging Face</option>
<option value="kimi">Kimi / Moonshot</option>
<option value="minimax">MiniMax</option>
<option value="openai">OpenAI — GPT-4o</option>
<option value="opencode-zen">OpenCode Zen</option>
<option value="z-ai">z.ai (GLM)</option>
</optgroup>
</select>
</div>
<!-- Key input (shows when provider selected) -->
<div id="key-input-group" style="display:none;margin-top:0.75rem;">
<div class="form-group">
<label class="form-label" id="key-label">API Key</label>
<div style="display:flex;gap:0.5rem;max-width:550px;">
<input type="text" id="api-key-input" placeholder="Paste your API key here..." style="flex:1;">
<button class="btn btn-primary" onclick="saveApiKey()" style="white-space:nowrap;">💾 Save</button>
</div>
<div id="key-provider-hint" style="margin-top:0.3rem;font-size:0.8rem;color:#64748b;"></div>
</div>
<!-- Per-provider helpers with inline Get Key button -->
<div id="helper-opencode-go" class="key-helpers">
<strong style="color:#6ee7b7;">Get your OpenCode Go key:</strong>
<a class="btn btn-primary btn-sm" href="https://opencode.ai/auth" target="_blank" style="margin-left:0.5rem;">🔑 Get Key</a>
<ol>
<li>Go to <a href="https://opencode.ai/auth" target="_blank" style="color:#22d3ee;">opencode.ai/auth</a></li>
<li>Sign in → <strong>Create API Key</strong> → name it "Pantheon"</li>
<li>Copy the key (starts with <code>sk-</code>) and paste above</li>
</ol>
</div>
<div id="helper-openrouter" class="key-helpers">
<strong style="color:#fbbf24;">Get your OpenRouter key:</strong>
<a class="btn btn-primary btn-sm" href="https://openrouter.ai/keys" target="_blank" style="margin-left:0.5rem;">🔑 Get Key</a>
<ol>
<li>Go to <a href="https://openrouter.ai/keys" target="_blank" style="color:#22d3ee;">openrouter.ai/keys</a></li>
<li>Sign in → <strong>Create Key</strong> → name it "Pantheon"</li>
<li>Paste the <code>sk-or-v1-</code> key above</li>
</ol>
<p style="margin-top:0.3rem;color:#64748b;">💰 New accounts get <strong>$1 free credit</strong></p>
</div>
<div id="helper-ollama" class="key-helpers">
<strong style="color:#a78bfa;">Ollama (local):</strong>
<a class="btn btn-primary btn-sm" href="https://ollama.com/download" target="_blank" style="margin-left:0.5rem;">📥 Download</a>
<ol>
<li>Install from <a href="https://ollama.com/download" target="_blank" style="color:#22d3ee;">ollama.com/download</a></li>
<li>Run: <code>ollama pull llama3.3</code></li>
<li>Type any value (e.g. "local") and Save — no key needed</li>
</ol>
</div>
<div id="helper-ollama-cloud" class="key-helpers">
<strong style="color:#60a5fa;">Ollama Cloud:</strong>
<a class="btn btn-primary btn-sm" href="https://ollama.com/settings" target="_blank" style="margin-left:0.5rem;">🔑 Get Key</a>
<ol>
<li>Go to <a href="https://ollama.com/settings" target="_blank" style="color:#22d3ee;">ollama.com/settings</a></li>
<li>Copy your API key from the settings page</li>
<li>Paste it above</li>
</ol>
</div>
</div>
<div id="key-status" class="status-msg"></div>
<div id="env-status" style="font-size:0.85rem;margin-top:0.5rem;"></div>
</div>
<!-- Embedding Provider -->
<div class="card">
<div class="card-title">🧠 Embedding Provider <span style="display:inline-block;background:#1e293b;color:#fbbf24;padding:0.15rem 0.5rem;border-radius:4px;font-size:0.7rem;font-weight:600;margin-left:0.4rem;" id="embed-badge">REQUIRED</span></div>
<div class="card-desc">For semantic search and knowledge retrieval. OpenCode Go doesn't do embeddings — pick a separate provider.</div>
<div class="form-group" style="margin-top:0.75rem;">
<label class="form-label">Embedding Provider</label>
<select id="embed-provider-select" onchange="onEmbedChange()">
<option value="">— Select an embedding provider —</option>
<option value="openrouter">🟡 OpenRouter — free model</option>
<option value="ollama">🟣 Ollama — local, free</option>
<option value="jina">🔵 Jina AI — $0.01/1M</option>
<option value="voyage">🟢 Voyage AI — $0.01/1M</option>
</select>
</div>
<div id="embed-key-group" style="display:none;margin-top:0.75rem;">
<div class="form-group">
<label class="form-label" id="embed-key-label">API Key</label>
<div style="display:flex;gap:0.5rem;max-width:550px;">
<input type="text" id="embed-key-input" placeholder="Paste your API key..." style="flex:1;">
<button class="btn btn-primary" onclick="saveEmbedKey()" style="white-space:nowrap;">💾 Save</button>
</div>
<div id="embed-key-hint" style="margin-top:0.3rem;font-size:0.8rem;color:#64748b;"></div>
</div>
<div id="embed-helper-openrouter" class="key-helpers">
<strong style="color:#fbbf24;">OpenRouter for embeddings:</strong>
<a class="btn btn-primary btn-sm" href="https://openrouter.ai/keys" target="_blank" style="margin-left:0.5rem;">🔑 Get Key</a>
<p style="margin-top:0.3rem;">Same key as your main provider works here.<br>💰 Free model — the $1 credit lasts forever.</p>
</div>
<div id="embed-helper-ollama" class="key-helpers">
<strong style="color:#a78bfa;">Ollama for embeddings:</strong>
<a class="btn btn-primary btn-sm" href="https://ollama.com/download" target="_blank" style="margin-left:0.5rem;">📥 Download</a>
<ol>
<li>Run: <code>ollama pull nomic-embed-text</code></li>
<li>Type any value and Save</li>
</ol>
<div id="ollama-status" style="margin-top:0.3rem;font-size:0.8rem;"></div>
</div>
<div id="embed-helper-jina" class="key-helpers">
<strong style="color:#60a5fa;">Jina AI:</strong>
<a class="btn btn-primary btn-sm" href="https://jina.ai/embeddings" target="_blank" style="margin-left:0.5rem;">🔑 Get Key</a>
<p style="margin-top:0.3rem;">💰 First 1M tokens free → $0.01/1M — 1024-dim.</p>
</div>
<div id="embed-helper-voyage" class="key-helpers">
<strong style="color:#6ee7b7;">Voyage AI:</strong>
<a class="btn btn-primary btn-sm" href="https://dash.voyageai.com/" target="_blank" style="margin-left:0.5rem;">🔑 Get Key</a>
<p style="margin-top:0.3rem;">💰 $0.01/1M tokens — 1024-dim instruct-tuned.</p>
</div>
</div>
<div id="embed-status" class="status-msg"></div>
</div>
<div class="nav-buttons">
<button class="btn btn-secondary" onclick="goPage(1)">← Back</button>
<button class="btn btn-primary btn-lg" onclick="goPage(3)">Next: Launch →</button>
</div>
</div>
<!-- ════════════════════════════════════════════ PAGE 3: Launch ═════ -->
<div class="page" id="page-3">
<div class="page-title">🚀 Launch Pantheon</div>
<div class="page-desc">Ready to meet your gods. One click installs everything and opens the Web UI.</div>
<!-- Pre-launch state -->
<div id="launch-ready">
<div class="card" style="text-align:center;padding:2rem;">
<div style="font-size:3rem;margin-bottom:0.75rem;">⛩️</div>
<div style="color:#94a3b8;font-size:0.9rem;margin-bottom:1rem;">
This will: <strong>install core gods</strong> • <strong>start the gateway</strong> • <strong>open Web UI</strong>
</div>
<button class="btn btn-success btn-lg" onclick="launchPantheon()">🚀 Launch Pantheon</button>
</div>
</div>
<!-- Launching state -->
<div id="launch-progress" style="display:none;">
<div class="card">
<div style="margin-bottom:0.75rem;color:#22d3ee;font-weight:600;">🚀 Starting your Pantheon...</div>
<div id="launch-steps">
<div id="lstep-installing" class="launch-step"><span class="launch-spinner">⏳</span> Installing core gods...</div>
<div id="lstep-athenaeum" class="launch-step" style="opacity:0.4;"><span class="launch-spinner">⏳</span> Creating Athenaeum knowledge store...</div>
<div id="lstep-mcp" class="launch-step" style="opacity:0.4;"><span class="launch-spinner">⏳</span> Starting MCP server...</div>
<div id="lstep-gateway" class="launch-step" style="opacity:0.4;"><span class="launch-spinner">⏳</span> Starting Pantheon gateway...</div>
<div id="lstep-waiting" class="launch-step" style="opacity:0.4;"><span class="launch-spinner">⏳</span> Waiting for services...</div>
</div>
<div id="launch-error" style="display:none;margin-top:0.75rem;padding:0.5rem 0.75rem;background:#7f1d1d;border:1px solid #b91c1c;border-radius:8px;color:#fca5a5;font-size:0.85rem;"></div>
</div>
<!-- Hero tip carousel during loading -->
<div class="tip-box" id="launch-tip" style="margin-top:0.75rem;">
<div class="tip-icon" id="ltip-icon" style="font-size:2rem;">🧠</div>
<div class="tip-label" id="ltip-label" style="color:#22d3ee;font-weight:600;font-size:0.9rem;margin-bottom:0.3rem;">Your brain jumps. The system keeps up.</div>
<div class="tip-text" id="ltip-text" style="color:#94a3b8;font-size:0.85rem;line-height:1.5;max-width:400px;">
Pantheon is designed for how you actually think — no friction, no momentum lost when you switch topics.
</div>
</div>
<div class="tip-dots" id="ltip-dots" style="margin-top:0.5rem;">
<div class="tip-dot active" data-tip="0"></div>
<div class="tip-dot" data-tip="1"></div>
<div class="tip-dot" data-tip="2"></div>
<div class="tip-dot" data-tip="3"></div>
<div class="tip-dot" data-tip="4"></div>
<div class="tip-dot" data-tip="5"></div>
<div class="tip-dot" data-tip="6"></div>
<div class="tip-dot" data-tip="7"></div>
</div>
</div>
<!-- Done state -->
<div id="launch-done" style="display:none;">
<div class="card" style="text-align:center;padding:2rem;">
<div style="font-size:3rem;margin-bottom:0.5rem;">✨</div>
<div style="color:#6ee7b7;font-weight:600;font-size:1.1rem;margin-bottom:0.5rem;">Pantheon is ready!</div>
<div style="color:#94a3b8;font-size:0.85rem;margin-bottom:1rem;">Your gods are waiting.</div>
<a class="btn btn-success btn-lg" href="javascript:void(0)" onclick="meetPantheon()" id="meet-btn">✨ Meet Pantheon</a>
<div id="meet-countdown" style="color:#64748b;font-size:0.75rem;margin-top:0.5rem;display:none;"></div>
</div>
</div>
<div class="nav-buttons">
<button class="btn btn-secondary" onclick="goPage(2)">← Back</button>
<button class="btn btn-secondary" onclick="goPage(4)">Skip →</button>
</div>
</div>
<!-- ════════════════════════════════════════════ PAGE 4: Connect ════ -->
<div class="page" id="page-4">
<div class="page-title">💬 Connect Your Chat</div>
<div class="page-desc">Pantheon works on Telegram, Discord, WhatsApp, and more. Just tell Hermes what you want.</div>
<div style="display:flex;flex-direction:column;gap:0.5rem;">
<div class="card" style="display:flex;align-items:center;gap:0.75rem;">
<div style="font-size:1.5rem;">✈️</div>
<div>
<strong>Telegram</strong><br>
<span style="color:#64748b;font-size:0.85rem;">In the Web UI, tell Hermes: </span>
<code style="background:#1e293b;padding:1px 6px;border-radius:4px;color:#22d3ee;">"Set up Telegram for me"</code>
</div>
</div>
<div class="card" style="display:flex;align-items:center;gap:0.75rem;">
<div style="font-size:1.5rem;">💬</div>
<div>
<strong>Discord</strong><br>
<span style="color:#64748b;font-size:0.85rem;">Tell Hermes: </span>
<code style="background:#1e293b;padding:1px 6px;border-radius:4px;color:#22d3ee;">"Connect my Discord server"</code>
</div>
</div>
<div class="card" style="display:flex;align-items:center;gap:0.75rem;">
<div style="font-size:1.5rem;">💚</div>
<div>
<strong>WhatsApp</strong><br>
<span style="color:#64748b;font-size:0.85rem;">Tell Hermes: </span>
<code style="background:#1e293b;padding:1px 6px;border-radius:4px;color:#22d3ee;">"Set up WhatsApp"</code>
</div>
</div>
</div>
<div class="card" style="margin-top:1rem;text-align:center;background:linear-gradient(135deg,rgba(6,78,59,0.3),rgba(8,51,68,0.3));border-color:#0d9488;">
<p style="color:#94a3b8;font-size:0.85rem;margin-bottom:0.75rem;">
Pantheon runs entirely on your machine. No SaaS, no data harvesting. You own every byte.
</p>
<div style="display:flex;gap:0.75rem;justify-content:center;flex-wrap:wrap;">
<a class="btn btn-success" href="http://localhost:8787" target="_blank">🚀 Start Chatting</a>
<a class="btn btn-secondary" href="https://github.com/Duskript/Pantheon" target="_blank">⭐ Star on GitHub</a>
</div>
</div>
<div class="nav-buttons">
<button class="btn btn-secondary" onclick="goPage(3)">← Back</button>
<div></div>
</div>
</div>
</div>
<footer>
Pantheon — <a href="https://github.com/Duskript/Pantheon">GitHub</a> —
Built on <a href="https://hermes-agent.nousresearch.com">Hermes Agent</a>
</footer>
<script>
const SETUP_API = 'http://localhost:9876';
// ── Page navigation ──
let currentPage = 1;
const TOTAL_PAGES = 4;
function goPage(n) {
if (n < 1 || n > TOTAL_PAGES) return;
document.querySelectorAll('.page').forEach(p => p.classList.remove('active'));
document.getElementById('page-' + n).classList.add('active');
document.querySelectorAll('.step-dot').forEach(d => d.classList.remove('active', 'done'));
for (let i = 1; i <= TOTAL_PAGES; i++) {
const dot = document.getElementById('sdot-' + i);
if (i < n) { dot.className = 'step-dot done'; }
else if (i === n) { dot.className = 'step-dot active'; }
}
currentPage = n;
window.scrollTo({ top: 0, behavior: 'smooth' });
}
// ── Launch tip carousel (8 tips, visible during loading) ──
const LAUNCH_TIPS = [
{ icon: '🧠', label: 'Your brain jumps. The system keeps up.', text: 'Pantheon is designed for how you actually think — no friction, no momentum lost when you switch topics.' },
{ icon: '🏛️', label: 'Meet your personal pantheon', text: 'Hermes (messenger), Hephaestus (builder), Apollo (creator), Caduceus (healer) — your own AI family.' },
{ icon: '🔓', label: 'Private by design', text: 'Everything runs on your machine. No SaaS, no data harvesting. You own every byte.' },
{ icon: '🔌', label: 'Connect anywhere', text: 'Telegram, Discord, WhatsApp — just ask Hermes and he\'ll help you get set up.' },
{ icon: '🧩', label: 'Extend with skills', text: 'Web search, email, GitHub, Reddit monitoring, cron jobs — built-in and ready.' },
{ icon: '⚡', label: 'Forge new gods', text: 'Use the Soul Forge in the Web UI to create custom gods — a researcher, a coach, a mentor.' },
{ icon: '💬', label: 'Ask anything', text: 'Pantheon remembers everything. Ask your gods about past conversations, projects, or ideas.' },
{ icon: '⭐', label: 'Open source', text: 'Pantheon is AGPL-licensed and community-driven. Star us on GitHub → github.com/Duskript/Pantheon' },
];
let launchTipIdx = 0;
let launchTipTimer = null;
function showLaunchTip(idx) {
const tip = LAUNCH_TIPS[idx];
document.getElementById('ltip-icon').textContent = tip.icon;
document.getElementById('ltip-label').textContent = tip.label;
document.getElementById('ltip-text').textContent = tip.text;
document.querySelectorAll('#ltip-dots .tip-dot').forEach((d, i) => {
d.classList.toggle('active', i === idx);
});
}
function startLaunchTips() {
if (launchTipTimer) clearInterval(launchTipTimer);
showLaunchTip(0);
launchTipTimer = setInterval(() => {
launchTipIdx = (launchTipIdx + 1) % LAUNCH_TIPS.length;
showLaunchTip(launchTipIdx);
}, 5000);
}
function stopLaunchTips() {
if (launchTipTimer) { clearInterval(launchTipTimer); launchTipTimer = null; }
}
// Wire up tip dots
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('#ltip-dots .tip-dot').forEach(dot => {
dot.addEventListener('click', function() {
const idx = parseInt(this.dataset.tip);
launchTipIdx = idx;
showLaunchTip(idx);
clearInterval(launchTipTimer);
launchTipTimer = setInterval(() => {
launchTipIdx = (launchTipIdx + 1) % LAUNCH_TIPS.length;
showLaunchTip(launchTipIdx);
}, 5000);
});
});
});
// ── Provider selector ──
function onProviderChange() {
const val = document.getElementById('provider-select').value;
const inputGroup = document.getElementById('key-input-group');
document.querySelectorAll('#key-input-group .key-helpers').forEach(el => el.style.display = 'none');
if (!val) { inputGroup.style.display = 'none'; return; }
inputGroup.style.display = 'block';
document.getElementById('api-key-input').value = '';
document.getElementById('api-key-input').focus();
const labels = {
'opencode-go': { label: '🔑 OpenCode Go API Key', hint: 'Key starts with sk-' },
'openrouter': { label: '🔑 OpenRouter API Key', hint: 'Key starts with sk-or-v1-' },
'ollama': { label: '🖥️ Ollama (local)', hint: 'No key needed — type "local" and Save' },
'ollama-cloud': { label: '🔵 Ollama Cloud API Key', hint: 'Key from ollama.com/settings' },
'anthropic': { label: '🔑 Anthropic API Key', hint: 'Key starts with sk-ant-' },
'deepseek': { label: '🔑 DeepSeek API Key', hint: 'Key from platform.deepseek.com' },
'google-gemini':{ label: '🔑 Google Gemini API Key', hint: 'Key from aistudio.google.com' },
'groq': { label: '🔑 Groq API Key', hint: 'Key from console.groq.com' },
'huggingface': { label: '🔑 Hugging Face Token', hint: 'Token from huggingface.co/settings' },
'kimi': { label: '🔑 Kimi API Key', hint: 'Key from platform.kimi.ai' },
'minimax': { label: '🔑 MiniMax API Key', hint: 'Key from minimax.io' },
'openai': { label: '🔑 OpenAI API Key', hint: 'Key starts with sk-proj-' },
'opencode-zen': { label: '🔑 OpenCode Zen Key', hint: 'Key from opencode.ai/auth' },
'z-ai': { label: '🔑 z.ai (GLM) Key', hint: 'Key from z.ai' },
};
const p = labels[val];
if (p) {
document.getElementById('key-label').textContent = p.label;
document.getElementById('key-provider-hint').textContent = p.hint;
const helper = document.getElementById('helper-' + val);
if (helper) helper.style.display = 'block';
}
}
// ── Embedding provider selector ──
function onEmbedChange() {
const val = document.getElementById('embed-provider-select').value;
document.querySelectorAll('#embed-key-group .key-helpers').forEach(el => el.style.display = 'none');
if (!val) { document.getElementById('embed-key-group').style.display = 'none'; return; }
document.getElementById('embed-key-group').style.display = 'block';
document.getElementById('embed-key-input').value = '';
document.getElementById('embed-key-input').focus();
const helper = document.getElementById('embed-helper-' + val);
if (helper) helper.style.display = 'block';
if (val === 'ollama') checkOllamaStatus();
const hints = {
'openrouter': 'Same key as your main provider works here',
'ollama': 'Type any value — Ollama doesn\'t use API keys',
'jina': 'Paste your jina_ key',
'voyage': 'Paste your pa- key',
};
document.getElementById('embed-key-hint').textContent = hints[val] || '';
}
// ── Save API key ──
function saveApiKey() {
const provider = document.getElementById('provider-select').value;
const apiKey = document.getElementById('api-key-input').value.trim();
const status = document.getElementById('key-status');
if (!provider) { showStatus('error', 'Select a provider first.'); return; }
if (!apiKey) { showStatus('error', 'Paste your API key first.'); return; }
showStatus('saving', 'Saving...');
fetch(SETUP_API + '/api/env/key', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ provider, api_key: apiKey }),
})
.then(r => r.json())
.then(data => {
if (data.status === 'ok') {
showStatus('success', '✅ ' + data.message);
document.getElementById('api-key-input').value = '';
document.getElementById('provider-select').value = '';
document.getElementById('key-input-group').style.display = 'none';
checkEnvStatus();
} else {
showStatus('error', '❌ ' + (data.error || 'Failed'));
}
})
.catch(() => showStatus('error', '❌ Setup server not reachable'));
}
// ── Save Embedding key ──
function saveEmbedKey() {
const provider = document.getElementById('embed-provider-select').value;
const apiKey = document.getElementById('embed-key-input').value.trim();
if (!provider) { showEmbedStatus('error', 'Select a provider first.'); return; }
if (!apiKey && provider !== 'ollama') { showEmbedStatus('error', 'Paste your key.'); return; }
showEmbedStatus('saving', 'Saving...');
fetch(SETUP_API + '/api/env/embed-key', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ provider, api_key: apiKey || 'ollama' }),
})
.then(r => r.json())
.then(data => {
if (data.status === 'ok') {
showEmbedStatus('success', '✅ ' + data.message);
document.getElementById('embed-key-input').value = '';
document.getElementById('embed-provider-select').value = '';
document.getElementById('embed-key-group').style.display = 'none';
checkEnvStatus();
} else {
showEmbedStatus('error', '❌ ' + (data.error || 'Failed'));
}
})
.catch(() => showEmbedStatus('error', '❌ Setup server not reachable'));
}
// ── Ollama status ──
function checkOllamaStatus() {
const el = document.getElementById('ollama-status');
el.innerHTML = '<span style="color:#64748b;">Checking...</span>';
fetch(SETUP_API + '/api/env/ollama-status')
.then(r => r.json())
.then(data => {
const o = data.ollama || {};
if (o.installed && o.running) {
const models = (o.embed_models || []).join(', ') || 'none';
el.innerHTML = '<span style="color:#6ee7b7;">✓ Ollama ' + o.version + ' running</span><br><span style="color:#94a3b8;font-size:0.8rem;">Models: ' + models + '</span>';
} else if (o.installed) {
el.innerHTML = '<span style="color:#fbbf24;">⚠ Installed but not running</span><br><span style="color:#94a3b8;font-size:0.8rem;">Run: <code style="background:#1e293b;padding:1px 6px;border-radius:4px;">ollama serve</code></span>';
} else {
el.innerHTML = '<span style="color:#fca5a5;">✗ Not installed</span><br><a href="https://ollama.com/download" target="_blank" style="color:#22d3ee;">Download →</a>';
}
})
.catch(() => { el.innerHTML = '<span style="color:#64748b;">Server unreachable</span>'; });
}
// ── Status displays ──
function showStatus(type, msg) {
const el = document.getElementById('key-status');
el.style.display = 'block';
const colors = { success: { bg: '#065f46', border: '#0d9488', text: '#6ee7b7' }, error: { bg: '#7f1d1d', border: '#b91c1c', text: '#fca5a5' }, saving: { bg: '#0e7490', border: '#0891b2', text: '#22d3ee' } };
const c = colors[type] || colors.saving;
Object.assign(el.style, { background: c.bg, border: '1px solid ' + c.border, color: c.text, padding: '0.5rem 0.75rem' });
el.textContent = msg;
if (type === 'success') setTimeout(() => { el.style.display = 'none'; }, 4000);
}
function showEmbedStatus(type, msg) {
const el = document.getElementById('embed-status');
el.style.display = 'block';
const colors = { success: { bg: '#065f46', border: '#0d9488', text: '#6ee7b7' }, error: { bg: '#7f1d1d', border: '#b91c1c', text: '#fca5a5' }, saving: { bg: '#0e7490', border: '#0891b2', text: '#22d3ee' } };
const c = colors[type] || colors.saving;
Object.assign(el.style, { background: c.bg, border: '1px solid ' + c.border, color: c.text, padding: '0.5rem 0.75rem' });
el.textContent = msg;
if (type === 'success') setTimeout(() => { el.style.display = 'none'; }, 4000);
}
// ── Check .env status ──
function checkEnvStatus() {
const el = document.getElementById('env-status');
el.innerHTML = '<span style="color:#64748b;">Checking...</span>';
fetch(SETUP_API + '/api/env/check')
.then(r => r.json())
.then(data => {
const keys = data.configured || {};
const count = Object.keys(keys).length;
const embed = data.embedding || {};
// Embedding badge
const badge = document.getElementById('embed-badge');
const es = document.getElementById('embed-status');
if (embed.configured) {
if (badge) { badge.textContent = '✅ DONE'; badge.style.color = '#6ee7b7'; badge.style.background = '#065f46'; }
es.style.display = 'block';
Object.assign(es.style, { background: '#065f46', border: '1px solid #0d9488', color: '#6ee7b7', padding: '0.5rem 0.75rem' });
es.innerHTML = '✅ Embeddings configured' + (embed.provider ? ' via <strong>' + embed.provider + '</strong>' : '');
} else {
if (badge) { badge.textContent = 'REQUIRED'; badge.style.color = '#fbbf24'; badge.style.background = '#1e293b'; }
es.style.display = 'block';
Object.assign(es.style, { background: '#7f1d1d', border: '1px solid #b91c1c', color: '#fca5a5', padding: '0.5rem 0.75rem' });
es.innerHTML = '⚠️ No embedding provider configured';
}
if (count > 0) {
const names = { OPENCODE_GO_API_KEY: 'OpenCode Go', OPENROUTER_API_KEY: 'OpenRouter', OLLAMA_API_KEY: 'Ollama', OPENAI_API_KEY: 'OpenAI', GOOGLE_API_KEY: 'Gemini', ANTHROPIC_API_KEY: 'Anthropic', DEEPSEEK_API_KEY: 'DeepSeek' };
const list = Object.entries(keys).map(([k]) => `<span style="color:#6ee7b7;">✓ ${names[k] || k}</span>`).join(' ');
el.innerHTML = '<div style="margin-top:0.5rem;padding:0.5rem 0.75rem;background:#0f172a;border:1px solid #1e293b;border-radius:8px;">' + list + '</div>' +
'<div style="margin-top:0.6rem;"><a class="btn btn-secondary btn-sm" href="setup-models.html">⚙️ Configure Models →</a></div>';
} else {
el.innerHTML = '';
}
})
.catch(() => {
el.innerHTML = '<span style="color:#64748b;font-size:0.8rem;">Setup server not running — add keys in <code style="background:#1e293b;padding:1px 6px;border-radius:4px;">~/pantheon/.env</code></span>';
});
}
// ── Launch ──
let launchPollTimer = null;
function launchPantheon() {
document.getElementById('launch-ready').style.display = 'none';
document.getElementById('launch-progress').style.display = 'block';
startLaunchTips();
fetch(SETUP_API + '/api/launch', { method: 'POST' })
.then(r => r.json())
.then(data => {
if (data.status === 'launching' || data.status === 'already_launching') pollLaunchStatus();
})
.catch(() => showLaunchError('Setup server not reachable'));
}
function pollLaunchStatus() {
if (launchPollTimer) clearTimeout(launchPollTimer);
fetch(SETUP_API + '/api/launch/status')
.then(r => r.json())
.then(data => {
const step = data.step || 'error';
const stepOrder = ['installing', 'athenaeum', 'mcp', 'gateway', 'waiting'];
const stepMap = { installing_gods: 'installing', installing: 'installing', initializing_athenaeum: 'athenaeum', starting_mcp: 'mcp', mcp: 'mcp', starting_gateway: 'gateway', gateway: 'gateway', waiting: 'waiting' };
const currentStep = stepMap[step] || null;
let activeFound = false;
for (const s of stepOrder) {
const el = document.getElementById('lstep-' + s);
if (!el) continue;
if (s === currentStep && !activeFound) {
el.className = 'launch-step active';
el.querySelector('.launch-spinner').textContent = '⏳';
activeFound = true;
} else if (activeFound || step === 'done') {
el.className = 'launch-step done';
el.querySelector('.launch-spinner').textContent = '✅';
} else {
el.className = 'launch-step done';
el.querySelector('.launch-spinner').textContent = '✅';
}
}
if (step === 'done') onLaunchComplete();
else if (step === 'error') showLaunchError(data.message || 'Launch failed');
else launchPollTimer = setTimeout(pollLaunchStatus, 2000);
})
.catch(() => { launchPollTimer = setTimeout(pollLaunchStatus, 3000); });
}
function onLaunchComplete() {
if (launchPollTimer) clearTimeout(launchPollTimer);
document.getElementById('launch-progress').style.display = 'none';
document.getElementById('launch-done').style.display = 'block';
document.getElementById('sdot-3').className = 'step-dot done';
stopLaunchTips();
}
function showLaunchError(msg) {
const el = document.getElementById('launch-error');
el.textContent = '❌ ' + msg;
el.style.display = 'block';
}
function meetPantheon() {
window.open('http://localhost:8787', '_blank');
const btn = document.getElementById('meet-btn');
if (btn) { btn.style.opacity = '0.5'; btn.style.cursor = 'default'; btn.onclick = null; btn.textContent = '✨ See you there!'; }
const cd = document.getElementById('meet-countdown');
cd.style.display = 'block';
let count = 30;
cd.textContent = 'Closing in ' + count + 's...';
setInterval(() => {
count--;
if (count <= 0) { cd.textContent = 'Closing...'; window.close(); }
else cd.textContent = 'Closing in ' + count + 's...';
}, 1000);
}
// ── Init ──
document.addEventListener('DOMContentLoaded', function() {
checkEnvStatus();
});
</script>
</body>
</html>