# proxy | 53f 7168L | python:45,javascript:5,shell:3
# Keys: M=modules, D=details, i=imports, c=classes, f=functions, m=methods
M[53]:
  frontend/proxym-dashboard.jsx,6
  htmlcov/coverage_html_cb_dd2e7eb5.js,735
  project.sh,14
  project/examples/advanced_usage.py,9
  project/examples/quickstart.py,16
  scripts/jetson-entrypoint.sh,43
  scripts/setup.sh,93
  src/proxym/__init__.py,3
  src/proxym/accounts/__init__.py,346
  src/proxym/api/__init__.py,16
  src/proxym/api/_pipeline.py,299
  src/proxym/api/_state.py,69
  src/proxym/api/completions.py,31
  src/proxym/api/context_api.py,86
  src/proxym/api/frontend.py,120
  src/proxym/api/system.py,67
  src/proxym/cache/__init__.py,333
  src/proxym/cli/__init__.py,1
  src/proxym/cli/_client.py,39
  src/proxym/cli/accounts.py,70
  src/proxym/cli/browser.py,65
  src/proxym/cli/system.py,69
  src/proxym/cli/vms.py,107
  src/proxym/config.py,93
  src/proxym/context/__init__.py,24
  src/proxym/context/_context.py,33
  src/proxym/context/detector.py,208
  src/proxym/context/session.py,144
  src/proxym/context/tool_selector.py,101
  src/proxym/ctl.py,187
  src/proxym/dashboard/__init__.py,292
  src/proxym/dashboard/api.js,11
  src/proxym/dashboard/hooks/useDashboardData.js,126
  src/proxym/dashboard/panel.jsx,355
  src/proxym/main.py,136
  src/proxym/mcp/__init__.py,24
  src/proxym/mcp/client.py,148
  src/proxym/mcp/registry.py,113
  src/proxym/mcp/router.py,95
  src/proxym/middleware/__init__.py,60
  src/proxym/providers/__init__.py,330
  src/proxym/router/__init__.py,340
  src/proxym/router/strategy.py,253
  src/proxym/virt/__init__.py,41
  src/proxym/virt/_check.py,17
  src/proxym/virt/_config.py,87
  src/proxym/virt/_enums.py,18
  src/proxym/virt/_orchestrator.py,542
  src/proxym/virt/browser_profiles.py,325
  src/proxym/virt/clonebox_adapter.py,209
  src/proxym/virt/profiles/__init__.py,69
  src/proxym/watch/__init__.py,146
  src/proxym/watch/client.py,4
D:
  htmlcov/coverage_html_cb_dd2e7eb5.js:
    e: debounce,timeoutId,checkVisible,rect,viewBottom,viewTop,on_click,elt,getCellValue,cell,child,rowComparator,valueA,valueB,sortColumn,currentSortOrder,current_direction,stored_list,saved_filter_value,saved_hide100_value,table,table_body_rows,no_rows,footer,ratio_columns,filter_handler,totals,text,casefold,hide100,show,celltext,cell,places,stored_list,by_region,sorted_by_region,frag,btn,category,btn,helpCheck,classes,match,c,probe,begin,next_indicator,c,probe,probe_line,chunk_indicator,end,prev_indicator,begin,end,line,line,c,probe_line,the_indicator,probe,indicator,begin,element,temp_scroll_marker,marker_scale,line_height,scroll_marker,line_top,line_number,header,header_bottom,updateHeader,ctxs,ctxs_text,width
    debounce()
    timeoutId()
    checkVisible()
    rect()
    viewBottom()
    viewTop()
    on_click()
    elt()
    getCellValue()
    cell()
    child()
    rowComparator()
    valueA()
    valueB()
    sortColumn()
    currentSortOrder()
    current_direction()
    stored_list()
    saved_filter_value()
    saved_hide100_value()
    table()
    table_body_rows()
    no_rows()
    footer()
    ratio_columns()
    filter_handler()
    totals()
    text()
    casefold()
    hide100()
    show()
    celltext()
    cell()
    places()
    stored_list()
    by_region()
    sorted_by_region()
    frag()
    btn()
    category()
    btn()
    helpCheck()
    classes()
    match()
    c()
    probe()
    begin()
    next_indicator()
    c()
    probe()
    probe_line()
    chunk_indicator()
    end()
    prev_indicator()
    begin()
    end()
    line()
    line()
    c()
    probe_line()
    the_indicator()
    probe()
    indicator()
    begin()
    element()
    temp_scroll_marker()
    marker_scale()
    line_height()
    scroll_marker()
    line_top()
    line_number()
    header()
    header_bottom()
    updateHeader()
    ctxs()
    ctxs_text()
    width()
  src/proxym/dashboard/panel.jsx:
    e: useState,useEffect,useCallback,StatusBadge,CostBar,pct,color,Card,ModelsTable,AccountRow,a,NewAccountForm,handleSubmit,AccountsPanel,handleCreate,VMCard,actions,VMsPanel,handleAction,DashboardHeader,TabNav,CostSummary,BudgetCards,dailyUsed,monthlyUsed,SystemCard,OverviewTab,Dashboard,data,root
    useState()
    useEffect()
    useCallback()
    StatusBadge()
    CostBar()
    pct()
    color()
    Card()
    ModelsTable()
    AccountRow()
    a()
    NewAccountForm()
    handleSubmit()
    AccountsPanel()
    handleCreate()
    VMCard()
    actions()
    VMsPanel()
    handleAction()
    DashboardHeader()
    TabNav()
    CostSummary()
    BudgetCards()
    dailyUsed()
    monthlyUsed()
    SystemCard()
    OverviewTab()
    Dashboard()
    data()
    root()
  src/proxym/accounts/__init__.py:
    e: ProviderType,ToolType,AccountCredentials,UsageMetrics,AccountLimits,ToolBinding,Account,AccountManager
    ProviderType(str,Enum):
    ToolType(str,Enum):
    AccountCredentials: to_safe_dict(0)  # Credentials for a single provider account...
    UsageMetrics: record(3)  # Tracked usage for a single account...
    AccountLimits: is_over_budget(1),budget_remaining(1)  # Provider-imposed and user-defined limits...
    ToolBinding:  # Binds an account to a specific tool/IDE instance...
    Account: status_summary(0)  # Single provider account with all associated data...
    AccountManager: __init__(1),_load(0),_save(0),add_account(1),remove_account(1),get_account(1),list_accounts(2),find_cheapest_active(1),record_usage(4),bind_tool(2),get_all_status(0),get_cost_summary(0),_account_to_dict(0),_from_dict(1),_dict_to_account(0)  # Central account registry.

Persists to a JSON file, with liv...
  src/proxym/cache/__init__.py:
    e: FileSnapshot,DeltaPayload,DeltaBuffer
    FileSnapshot: from_path(0)  # Immutable snapshot of a single file...
    DeltaPayload:  # Computed delta between two context snapshots...
    DeltaBuffer: __init__(4),scan(0),compute_delta(0),_make_full_payload(4),_classify_changes(1),_build_diff_text(4),_build_full_context(1),_estimate_tokens(1),get_stats(0)  # Maintains file snapshots and computes minimal diffs.

Parame...
  src/proxym/virt/browser_profiles.py:
    e: BrowserProfile,AppDataSync,detect_firefox_profiles,detect_chrome_profiles,detect_chromium_profiles,detect_all_profiles,generate_app_data_sync,_detect_chromium_family,_scan_firefox_cookies,_scan_chrome_cookies,_dir_size_mb,_chrome_config_dir
    BrowserProfile: to_dict(0)  # Detected browser profile on the host...
    AppDataSync:  # Configuration for syncing browser data into a VM...
    detect_firefox_profiles()
    detect_chrome_profiles()
    detect_chromium_profiles()
    detect_all_profiles()
    generate_app_data_sync(profile;with_passwords)
    _detect_chromium_family(base_dir;browser)
    _scan_firefox_cookies(cookies_db)
    _scan_chrome_cookies(cookies_file)
    _dir_size_mb(path)
    _chrome_config_dir(browser)
  src/proxym/virt/_config.py:
    e: ProjectsConfig,VMConfig,VMStatus
    ProjectsConfig: filter_projects(1)  # Configuration for shared project mounts from the host...
    VMConfig:  # Configuration for a development VM...
    VMStatus:  # Runtime status of a VM...
  src/proxym/cli/_client.py:
    e: make_client,print_json,print_table
    make_client(base;key)
    print_json(data)
    print_table(rows;columns;widths)
  src/proxym/context/detector.py:
    e: detect_project,_from_directory,_get_git_remote,_detect_stack,_detect_frameworks,_extract_paths,_find_common_root,_extract_system_text,_from_system_prompt
    detect_project(messages;headers)
    _from_directory(directory)
    _get_git_remote(root)
    _detect_stack(root)
    _detect_frameworks(root)
    _extract_paths(messages)
    _find_common_root(paths)
    _extract_system_text(messages)
    _from_system_prompt(text)
  src/proxym/router/strategy.py:
    e: RoutingDecision,CostLedger,Router,_find_candidates,_resolve_explicit,_estimate_cost
    RoutingDecision:  # Complete routing decision with audit trail...
    CostLedger: __init__(2),_rotate_keys(0),can_spend(1),record(1)  # In-memory cost ledger with Redis persistence.

Tracks spend ...
    Router: __init__(3),route(2),_try_explicit(3),_filter_by_budget(2),_build_decision(3),record_latency(2),record_cost(1)  # Stateful router that selects the optimal model per request...
    _find_candidates(analysis;available_providers)
    _resolve_explicit(model_str)
    _estimate_cost(model;estimated_output_tokens)
  src/proxym/providers/__init__.py:
    e: TaskTier,Capability,ModelSpec,_r,models_for_tier,cheapest_model,get_model
    TaskTier(str,Enum):  # Complexity tier that determines which model class is needed...
    Capability(str,Enum):
    ModelSpec:  # Immutable specification for a single model deployment...
    _r(spec)
    models_for_tier(tier;required_caps;available_providers)
    cheapest_model(tier;available_providers;required_caps)
    get_model(model_id)
  src/proxym/router/__init__.py:
    e: AnalysisResult,analyze_request,_handle_explicit_tier,_handle_explicit_model,_match_patterns,_detect_image_blocks,_length_signals,_file_signals,_context_signals,_keyword_signals,_apply_heuristics,_select_tier,_estimate_output_tokens,_extract_user_text,_extract_system_text
    AnalysisResult:  # Result of content analysis...
    analyze_request(messages)
    _handle_explicit_tier(explicit_tier)
    _handle_explicit_model(explicit_model)
    _match_patterns(user_text;all_text;tier_scores;caps;signals)
    _detect_image_blocks(messages;caps;signals)
    _length_signals(text_len;tier_scores;signals)
    _file_signals(file_count;tier_scores;signals)
    _context_signals(context_tokens;tier_scores;caps;signals)
    _keyword_signals(user_text;all_text;tier_scores;caps;signals)
    _apply_heuristics(user_text;all_text;file_count;context_tokens;tier_scores;caps;signals)
    _select_tier(tier_scores;signals;text_len)
    _estimate_output_tokens(tier)
    _extract_user_text(messages)
    _extract_system_text(messages)
  src/proxym/ctl.py:
    e: _dispatch,_build_serve_parser,_build_accounts_parser,_build_vm_parser,_build_browser_parser,main
    _dispatch(args;sub_parsers)
    _build_serve_parser(sub)
    _build_accounts_parser(sub)
    _build_vm_parser(sub)
    _build_browser_parser(sub)
    main()
  src/proxym/virt/_orchestrator.py:
    e: _InfraMixin,_LifecycleMixin,_SnapshotMixin,_StateMixin,_ProjectMixin,VMOrchestrator
    _InfraMixin: _run(1),check_libvirt_available(-1),_generate_domain_xml(1)  # Low-level helpers: shell commands and libvirt XML generation...
    _LifecycleMixin: create_vm(1),_create_vm_clonebox(1),_create_vm_virsh(1),start_vm(1),_start_vm_clonebox(2),stop_vm(2),_stop_vm_clonebox(1),pause_vm(1),resume_vm(1)  # VM creation, start, stop, pause, resume...
    _SnapshotMixin: snapshot_vm(2),_snapshot_clonebox(2),restore_snapshot(2),delete_vm(1)  # VM snapshots: create, restore, delete VM...
    _StateMixin: get_status(1),_refresh_state_clonebox(1),_refresh_state_virsh(1),_get_vm_ip(1),list_vms(0)  # VM status queries and state refresh...
    _ProjectMixin: switch_project(2),_remount_project(2)  # Project switching (hot-swap code mounts)...
    VMOrchestrator(_InfraMixin,_LifecycleMixin,_SnapshotMixin,_StateMixin,_ProjectMixin): __init__(5),_load_configs(0),_save_config(1),_get_clonebox(0),_resolve_backend(1)  # Manages VMs for isolated dev environments.

Backend selectio...
  src/proxym/cli/system.py:
    e: cmd_serve,cmd_status,cmd_models
    cmd_serve(args)
    cmd_status(args)
    cmd_models(args)
  src/proxym/api/_pipeline.py:
    e: CompletionPipeline,_set_provider_keys,_calculate_cost,_inject_context,_resolve_model_alias
    CompletionPipeline: __init__(3),execute(0),_build_context(0),_route(0),_inject_tools(0),_touch_session(0),_run(0),_build_kwargs(0),_execute_with_fallbacks(1),_make_stream_response(3),_make_non_stream_response(4),_stream_wrapper(3)  # Structured pipeline for processing a chat completion request...
    _set_provider_keys(kwargs;model)
    _calculate_cost(model;prompt_tokens;completion_tokens)
    _inject_context(messages)
    _resolve_model_alias(requested_model)
  src/proxym/cli/browser.py:
    e: cmd_browser_list,cmd_browser_assign,cmd_browser_sync,cmd_browser_snapshot
    cmd_browser_list(args)
    cmd_browser_assign(args)
    cmd_browser_sync(args)
    cmd_browser_snapshot(args)
  src/proxym/cli/vms.py:
    e: cmd_vm_list,cmd_vm_create,cmd_vm_action,cmd_vm_switch,cmd_vm_open,_find_vm,cmd_vm_ssh,cmd_vm_logs
    cmd_vm_list(args)
    cmd_vm_create(args)
    cmd_vm_action(args)
    cmd_vm_switch(args)
    cmd_vm_open(args)
    _find_vm(args)
    cmd_vm_ssh(args)
    cmd_vm_logs(args)
  src/proxym/cli/accounts.py:
    e: cmd_accounts_list,cmd_accounts_add,cmd_accounts_costs
    cmd_accounts_list(args)
    cmd_accounts_add(args)
    cmd_accounts_costs(args)
  src/proxym/mcp/client.py:
    e: MCPToolResult,MCPClient
    MCPToolResult:  # Result of an MCP tool invocation...
    MCPClient: __init__(2),invoke_tool(3),_try_invoke(4),_parse_response(3)  # HTTP client for MCP server communication.

Parameters
------...
  src/proxym/context/session.py:
    e: AgentSession,SessionStore
    AgentSession: touch(0),add_exchange(2)  # Stateful session for an agent working on a project...
    SessionStore: __init__(2),get_or_create(2),get(1),delete(1),list_sessions(0),_evict_expired(0)  # In-memory session store with TTL-based expiry.

Parameters
-...
  src/proxym/middleware/__init__.py:
    e: AuthMiddleware,CostTrackingMiddleware
    AuthMiddleware(BaseHTTPMiddleware): __init__(2),dispatch(2)  # Simple bearer token auth (matches LiteLLM master_key pattern...
    CostTrackingMiddleware(BaseHTTPMiddleware): dispatch(2)  # Log request timing and attach cost headers to responses...
  src/proxym/virt/clonebox_adapter.py:
    e: CloneBoxResult,CloneBoxAdapter
    CloneBoxResult:  # Result of a clonebox CLI invocation...
    CloneBoxAdapter: __init__(1),is_available(0),version(0),create_vm(3),start_vm(1),stop_vm(1),snapshot(2),restore_snapshot(2),health(1),delete_vm(1),list_vms(0),detect(0),export_encrypted(2),get_profile_path(1),generate_profile_name(2),_find_bin(0),_run(2)  # Adapter wrapping the clonebox CLI for VM operations.

All op...
  src/proxym/mcp/router.py:
    e: MCPRouter
    MCPRouter: __init__(1),select_servers(2),get_tools_for_servers(1),resolve_tool_call(1)  # Routes tool requests to appropriate MCP servers.

Parameters...
  src/proxym/context/tool_selector.py:
    e: select_tools,_detect_intent
    select_tools(context;analysis;available_servers)
    _detect_intent(analysis)
  src/proxym/api/frontend.py:
    e: _serve_file,dashboard_ui,dashboard_hook_js,dashboard_api_js,dashboard_jsx,get_frontend_config
    _serve_file(paths;media_type;charset_header)
    dashboard_ui()
    dashboard_hook_js()
    dashboard_api_js()
    dashboard_jsx()
    get_frontend_config(request)
  src/proxym/watch/__init__.py:
    e: DeltaWatchClient,cli
    DeltaWatchClient: __init__(5),push_delta(0),run(0),close(0)  # Watches a directory and pushes context deltas to the proxy s...
    cli()
  src/proxym/virt/profiles/__init__.py:
    e: get_builtin_profile,list_builtin_profiles,merge_profiles,load_profile_yaml
    get_builtin_profile(tool)
    list_builtin_profiles()
    merge_profiles(base;override)
    load_profile_yaml(path)
  src/proxym/dashboard/hooks/useDashboardData.js:
    e: useHealth,refresh,h,useBudget,refresh,useModels,refresh,m,useProviders,refresh,p,useResources,refresh,useDashboardData,getInitialTab,hash,setTab,handleHashChange,newTab,healthHook,budgetHook,modelsHook,providersHook,resourcesHook,refresh,isUp,i
    useHealth()
    refresh()
    h()
    useBudget()
    refresh()
    useModels()
    refresh()
    m()
    useProviders()
    refresh()
    p()
    useResources()
    refresh()
    useDashboardData()
    getInitialTab()
    hash()
    setTab()
    handleHashChange()
    newTab()
    healthHook()
    budgetHook()
    modelsHook()
    providersHook()
    resourcesHook()
    refresh()
    isUp()
    i()
  src/proxym/dashboard/__init__.py:
    e: CreateAccountReq,BindToolReq,CreateVMReq,SwitchProjectReq,_accounts,_vms,list_accounts,create_account,get_account,delete_account,bind_tool,cost_summary,cost_detailed,list_vms,create_vm,start_vm,stop_vm,pause_vm,resume_vm,snapshot_vm,switch_project,delete_vm,dashboard_root,system_status,list_providers
    CreateAccountReq(BaseModel):
    BindToolReq(BaseModel):
    CreateVMReq(BaseModel):
    SwitchProjectReq(BaseModel):
    _accounts()
    _vms()
    list_accounts(provider;tag)
    create_account(req)
    get_account(account_id)
    delete_account(account_id)
    bind_tool(account_id;req)
    cost_summary()
    cost_detailed()
    list_vms()
    create_vm(req)
    start_vm(vm_id)
    stop_vm(vm_id;force)
    pause_vm(vm_id)
    resume_vm(vm_id)
    snapshot_vm(vm_id;name)
    switch_project(vm_id;req)
    delete_vm(vm_id)
    dashboard_root()
    system_status()
    list_providers()
  src/proxym/mcp/registry.py:
    e: MCPTransport,MCPServerSpec,MCPRegistry
    MCPTransport(str,Enum):  # Transport protocol for MCP communication...
    MCPServerSpec:  # Specification of a registered MCP server.

Attributes
------...
    MCPRegistry: __init__(0),register(1),unregister(1),get(1),list_servers(1),available_names(0),servers_for_tool(1),load_from_config(1)  # Registry of available MCP servers.

Servers can be registere...
  src/proxym/api/system.py:
    e: favicon,health,list_models,budget_status,context_stats
    favicon()
    health()
    list_models()
    budget_status()
    context_stats()
  src/proxym/virt/_check.py:
    e: _check_clonebox
    _check_clonebox()
  src/proxym/context/_context.py:
    e: ProjectContext
    ProjectContext: make_project_id(1)  # Detected project context for a request.

Populated by ``dete...
  src/proxym/dashboard/api.js:
    e: _api,_key,_debug,_headers,get,post
    _api()
    _key()
    _debug()
    _headers()
    get()
    post()
  src/proxym/config.py:
    e: Settings,get_settings
    Settings(BaseSettings): available_providers(0)  # All settings with sensible defaults. Override via env vars o...
    get_settings()
  src/proxym/main.py:
    e: lifespan,cli
    lifespan(app)
    cli()
  src/proxym/api/context_api.py:
    e: receive_delta,detect_context,list_sessions,list_mcp_servers
    receive_delta(request)
    detect_context(request)
    list_sessions()
    list_mcp_servers()
  src/proxym/api/_state.py:
    e: get_router,get_delta_buffer,get_mcp_router,get_session_store,get_context_payload,set_context_payload
    get_router()
    get_delta_buffer()
    get_mcp_router()
    get_session_store()
    get_context_payload()
    set_context_payload(payload)
  src/proxym/api/completions.py:
    e: chat_completions
    chat_completions(request;x_task_tier)
  project/examples/quickstart.py:
  src/proxym/__init__.py:
  project/examples/advanced_usage.py:
  src/proxym/virt/_enums.py:
    e: VMBackend,VMState
    VMBackend(str,Enum):
    VMState(str,Enum):
  src/proxym/virt/__init__.py:
  src/proxym/cli/__init__.py:
  src/proxym/mcp/__init__.py:
  src/proxym/context/__init__.py:
  src/proxym/api/__init__.py:
  src/proxym/watch/client.py:
  frontend/proxym-dashboard.jsx:
  project.sh:
  scripts/jetson-entrypoint.sh:
  scripts/setup.sh:
