Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.
Rust ai-agentsai-gatewayclaude-codecodexcoding-agentcost-optimizationdeepseekllm-gatewayllm-routerlocal-firstmodel-routingrusttask-routingtauri
#app {
width: 100%;
height: 100%;
}
.app-window {
position: relative;
display: grid;
grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
grid-template-rows: var(--titlebar-height) minmax(0, 1fr);
width: 100%;
height: 100%;
background:
radial-gradient(circle at 82% -16%, rgba(103, 119, 245, 0.11), transparent 34%),
var(--bg);
}
.titlebar {
position: relative;
z-index: 20;
grid-column: 1 / -1;
display: grid;
grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
height: var(--titlebar-height);
border-bottom: 1px solid var(--divider);
background: color-mix(in srgb, var(--glass) 95%, transparent);
backdrop-filter: blur(22px) saturate(125%);
-webkit-app-region: drag;
}
.window-controls {
display: flex;
align-items: center;
gap: 9px;
padding-left: 76px;
border-right: 1px solid var(--divider);
}
.traffic-light {
width: 12px;
height: 12px;
border: 1px solid rgba(0, 0, 0, 0.14);
border-radius: 50%;
}
.traffic-light.red { background: #ff5f57; }
.traffic-light.yellow { background: #febc2e; }
.traffic-light.green { background: #28c840; }
.titlebar-main {
display: flex;
align-items: center;
justify-content: space-between;
min-width: 0;
padding: 0 18px 0 22px;
}
.window-title {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
font-size:calc(14px * var(--hr-text-scale));
font-weight: 650;
color: var(--text-soft);
}
.window-title .page-label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.titlebar-actions {
display: flex;
align-items: center;
gap: 8px;
-webkit-app-region: no-drag;
}
.live-status {
display: inline-flex;
align-items: center;
gap: 7px;
min-height: calc(30px * var(--hr-text-scale));
padding: 0 10px;
border: 1px solid var(--border);
border-radius: 99px;
background: var(--bg-soft);
color: var(--text-muted);
font-size:calc(13px * var(--hr-text-scale));
}
.live-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--green);
box-shadow: 0 0 0 4px var(--green-soft);
}
.sidebar {
position: relative;
z-index: 10;
display: flex;
flex-direction: column;
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
border-right: 1px solid var(--divider);
background: color-mix(in srgb, var(--glass) 91%, transparent);
backdrop-filter: blur(22px) saturate(120%);
}
.brand {
display: flex;
flex-shrink: 0;
align-items: center;
gap: 11px;
height: 68px;
margin: 0 12px;
padding: 0 10px;
}
.brand-mark {
display: block;
width: 34px;
height: 34px;
flex: 0 0 34px;
overflow: hidden;
border-radius: 11px;
box-shadow: 0 8px 26px rgba(101, 116, 242, 0.25);
}
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-copy strong {
display: block;
font-size:calc(16px * var(--hr-text-scale));
letter-spacing: -0.01em;
}
.brand-copy span {
display: block;
margin-top: 2px;
color: var(--text-muted);
font-size:calc(11px * var(--hr-text-scale));
letter-spacing: 0.08em;
text-transform: uppercase;
}
.nav {
display: flex;
flex-direction: column;
flex-shrink: 0;
gap: 4px;
padding: 7px 10px;
}
.nav-item {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
min-height: calc(42px * var(--hr-text-scale));
height: auto;
padding: 0 12px;
border: 0;
border-radius: 10px;
background: transparent;
color: var(--text-muted);
text-align: left;
cursor: default;
transition: 150ms var(--ease);
}
.nav-item:hover {
background: var(--bg-hover);
color: var(--text-soft);
}
.nav-item.active {
background: var(--accent-soft);
color: var(--accent-bright);
}
.nav-item .icon { width: 19px; height: 19px; }
.nav-item span { font-size:calc(15px * var(--hr-text-scale)); font-weight: 570; }
.sidebar-spacer { flex: 1; }
.sidebar-foot {
flex-shrink: 0;
padding: 10px;
border-top: 1px solid var(--divider);
}
.sidebar-health {
display: flex;
align-items: center;
gap: 10px;
margin: 3px 2px 10px;
padding: 7px 9px;
color: var(--text-muted);
font-size:calc(12px * var(--hr-text-scale));
}
.sidebar-health strong {
display: block;
color: var(--text-soft);
font-size:calc(13px * var(--hr-text-scale));
font-weight: 600;
}
.main {
position: relative;
min-width: 0;
min-height: 0;
overflow: hidden;
}
.page {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
min-height: 0;
}
.page-toolbar {
position: relative;
z-index: 4;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
min-height: var(--toolbar-height);
padding: 0 28px;
border-bottom: 1px solid var(--divider);
background: color-mix(in srgb, var(--bg) 82%, transparent);
backdrop-filter: blur(18px);
}
.page-title-wrap {
min-width: 0;
}
.page-title {
margin: 0;
font-size:calc(22px * var(--hr-text-scale));
font-weight: 720;
letter-spacing: -0.025em;
}
.page-subtitle {
margin-top: 4px;
overflow: hidden;
color: var(--text-muted);
font-size:calc(13px * var(--hr-text-scale));
line-height:1.45;
overflow-wrap:anywhere;
}
.toolbar-actions {
display: flex;
align-items: center;
gap: 9px;
flex-shrink: 0;
}
.page-content {
flex: 1;
min-height: 0;
overflow: auto;
padding: 26px 28px 36px;
}
.page-content.no-padding {
padding: 0;
overflow: hidden;
}
.prototype-dock {
position: fixed;
z-index: 150;
right: 18px;
bottom: 16px;
display: flex;
align-items: center;
gap: 7px;
padding: 7px;
border: 1px solid var(--border-strong);
border-radius: 12px;
background: color-mix(in srgb, var(--panel-high) 93%, transparent);
box-shadow: var(--shadow-md);
backdrop-filter: blur(18px);
}
.prototype-tag {
padding: 0 7px;
color: var(--text-muted);
font: 600 calc(10px * var(--hr-text-scale))/1 var(--font-mono);
letter-spacing: 0.06em;
text-transform: uppercase;
}
@media (max-width: 1060px) {
:root { --sidebar-width: 76px; }
.brand-copy,
.nav-item span,
.sidebar-health div { display: none; }
.brand { justify-content: center; padding: 0; }
.nav-item { justify-content: center; padding: 0; }
.sidebar-health { justify-content: center; }
}