Create Your Own Work Stack: Deploying Self-hosted AI and Tooling in a Tech Startup
Organizations: Grayhat Developers (Pvt) Ltd
Abstract
Self-hosting AI is often presented as a way to reduce inference costs and increase control, but deployment introduces its own costs. We report our experience deploying a hybrid AI stack at Grayhat Developers, a small software company with an AI-intensive development workflow. Our initial motivation was to counter the growing cost of commercial AI usage: Claude/Codex incurred approximately $325 per month, with more than 25.93 billion recorded tokens. We experimented with local open-source models as replacements for commercial coding agents, but after learning that their performance and inference speed were insufficient, we adopted a hybrid approach in which commercial agents remained responsible for complex tasks while local models handled lower-complexity tasks, organizational information retrieval, and synchronization with self-hosted tools including Outline, Plane, and ERPNext. We estimated that approximately 30--40% of our commercial AI workload was associated with context transfer, documentation synchronization, task management, and related operational coordination. By moving this work to local models, we estimate that approximately 90% of this coordination workload could be handled without commercial inference, corresponding to an estimated 27--36% reduction in overall commercial-AI workload or cost-equivalent usage. Our first internal deployment nevertheless failed to achieve adoption because it introduced UX friction. Replacing it with a centrally configured deployment substantially improved feedback and adoption. We conclude that local inference is most useful not as a wholesale replacement for commercial AI, but as part of a hybrid architecture that assigns tasks according to their capability requirements, cost, context demands, and operational sensitivity.
Figures & tables
| Metric | Value |
|---|---|
| Monthly commercial AI cost | $325 |
| Recorded token usage | 25.93B+ |
| Estimated coordination workload | 30–40% |
| Quality | Very High |
| Category | Comments |
|---|---|
| Setup & Onboarding | 8 |
| AI Performance & Model Quality | 5 |
| Reliability, Uptime & Guardrails | 2 |
| Tool Integrations | 7 |
| UX & Trust in Output | 3 |
| Feature Requests | 1 |
| Category | Comments | Change |
|---|---|---|
| Setup & Onboarding | 3 | |
| AI Performance & Model Quality | 6 | |
| Reliability, Uptime & Guardrails | 7 | |
| Tool Integrations | 6 | |
| UX & Trust in Output | 5 | |
| Feature Requests | 7 |
| Metric | Value |
|---|---|
| Monthly commercial AI cost baseline | $325 |
| Estimated coordination workload | 30–40% |
| Coordination workload handled locally | 90% |
| Estimated overall workload displaced | 27–36% |
| Cost-equivalent workload displaced | 117/month |
| Local LLM operating cost | 30/month |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Cost-Aware Inference
Cost-aware inference allocates models, computation, and serving resources to meet quality goals at lower latency, energy use, and monetary cost.
See all 290 papers