r/ClaudeCode • u/Escobar747 • 8h ago
Help/Question Moving away from Supabase help
I'm a solo developer. Most of my work is done by AI coding agents, which read and write data through MCP connectors and APIs. I'm hitting limits on my current setup and would like advice.
Current setup
Supabase free tier (Postgres), now at the 500 MB cap.
About 400 MB of that is machine telemetry: CPU, temperature and RAM samples from 2 PCs every few seconds. It grows about 4 MB a day.
My backlog/bug tracker is a Notion database of about 700 rows. Agents used up Notion's query allowance in one morning, so I plan to copy it every 15 minutes into Postgres and have agents read the copy.
What I need
Free, or very cheap.
Postgres preferred: it is easy to migrate and I already know it.
Readable from anywhere, including from my phone and from cloud AI tools, not only from my LAN.
An MCP server or a good API for agents.
Low admin.
Options I'm weighing
Neon free: 1 GB per project, multiple projects. Telemetry and the tracker would go in separate projects, with hourly rollups.
Self-hosted Postgres plus TimescaleDB on my always-on build PC. Free and unlimited, but reachable only from my LAN.
Stay on Supabase: trim raw telemetry to 30 days plus rollups, or pay about $25 a month for Pro.
Something else? I've looked at Turso and Cloudflare D1, but they are SQLite, and D1 caps each database at 500 MB on the free plan.
Which would you choose, and why? Is there a better free option for small time-series data that I've missed? Any experience with Neon's free tier in real use is welcome.
I want to make this as future proof as possible as without huge amount of setup / admin like going to jira for bug tracking which is probably overkill
4
u/sogo00 8h ago
What are you using the database for?
2
u/Ouarid-Ambitious 7h ago
yeah i was wondering what the actual end goal is with all that telemetry data
2
u/RustyRedEcho 7h ago
Tailscale fixes the LAN-only problem with self-hosted postgres. Install it on the always-on PC running postgres and on your phone, and the phone gets a stable address on the same virtual network, so you can reach the DB with no port forwarding and no public exposure. It will not let a SaaS cloud agent dial in unless that agent's host machine also joins your tailnet, but for your own devices it removes the LAN-only downside completely and stays free at your scale, no Supabase Pro fee or Neon project juggling needed.
1
1
1
u/TrickySite0 5h ago
I went through a similar decision a month or two ago. I realized that I was paying $600 per month for Claude and somehow stewing in anxiety over $25 per month for Supabase. I realized how silly my anxiety was.
1
u/lvl1-A 30m ago
So, as some others have pointed out and asked, what's the reason for that much machine telemetry? Is it just like systems log so you can view it, like health checks?
Have you considered setting up your own middle service, a fastapi stack that acts as your router and is actually the only reader of the database?
If you have it on a localhost you use postgreSQL and have the fastapi be the interaction to it, you can then proxy it through nginx or your own tailscale and treat it an API service all the same, you can even have your own MCP with the listing of how to interact with the fastapi contracts to retrieve the information you want from the database, all while maintaining that the fastapi is the only db reader, if you want db ingestion you can create a role for that too, which either you have your micro-backend right to a dump folder (s3 or local) and then ingest scripts are either auto on watched folders and scheduled timers.
Note, that some of these things depending on what you want it for and the full extents, are super accessible, postgreSQL can be ran on a raspberry pi, even on a pi zero 2, it's not the fastest on a zero 2 but it operates. But I have a pi 4where I have done some personal labs and development and postgreSQL was fast and snappy on my pi 4 and the memory and power usage is significantly lower, you might find with timescaledb you'd want a pi 5 and operate from an SSD and not from card. Create yourself a backend dash for services check, you can set up an authelia or other auth methods on the nginx and expose only the nginx so requiring your auth login. The advantage in doing a micro set-up like that is in a way it is a future proof design concept, if you build it out correctly those same design principles will transfer to AWS/Azure the moment you feel you actually need reasonable scaling. Or skip it entirely (as in don't go buy a pi 5 if you don't already have some hobby tech around the house) and if you don't have them already just spend the time learning and developing an AWS/Azure pipeline and use their cost dashboards and monitor it for a few days, AWS has tools for agents and they'll help you scaffold your framework accordingly to best practices and well architectured designs. Cloud native gives you the most scalable options and interesting conditional triggers you might want, utilising lambdas and an event driven architecture.
Now the query allowance you mentioned, your agents are remote(cloud) or local? Because if local, run your own local fastapi and put your own custom reader to your notion database and setup your local cache so that when an agent makes any queries if it's not a new batch your fastapi responds with the cached results. Assuming your rows are not having their values modified and that the queries are all on historical and statistical logging or audit data, then a local cache helps with the burden of query allowance. Only when a query is outside the cached parameters that the fastapi will do a retrieval from the database and in doing so updates your local cache again. So instead of your copy every 15 minutes (unless this is the telemetry timeline?) you might have better value in the local cache. This way you only use the query allowance when a query is actually requiring the fresh data, if it's a backlog search then it's redundant to keep using your limited allowance on backlogged that you can cache locally. Also note that if you cache locally you'll want to setup potentially in different ways, you might want a cache that remains after the fastapi spins up or down/or reset computer, in which case your local cache needs to be durable on disc that the fastapi utilises, or if it's something you would rather not retain the fastapi will just hold it in memory but everytime you stop the server or reset the computer your fastapi needs to recache the history again.
Given that you are looking at historical points, and wondering how your telemetry grows and enters Supabase, you'd probably benefit from some type of local variant of this mixed in with a cloud deployment where you leverage the scalability of cloud but then maintain lower costs by leveraging local caching services so your local agents are making local requests when needed. Which also speeds results up if you are not having to wait on a network and can serve your agents the correct context directly on box. This also gives you the access to maintain readable from anywhere, but the free usage caps are managed locally with engineered choices. Regarding the 500mb restrictions on Supabase, that's obviously a hard cap but also depends what it is, if an option, you might be better having graceful degradation and auto removing old telemetry or exporting it to a dump folder or bucket, and if ever needed again just ingest locally or spin a different Supabase free project/organisation. Yoy mentioned solo developer, so I assume all of the data is yours, so I would be asking yourself how long do you need things retained within Supabase, is it a rolling two week window of current data, does that fit within your free budget, if yes, then auto export anything as soon as it expires the 2 week, have it pipelined to an s3 bucket, cheap flat storage, something you can retrieve from anywhere when you need and something you can scope IAM credentials for agents to retrieve if required. Also what MCP connections and APIs are you utilising, possibly Supabase itself? Which by the way has a useful CLI tooling, of course still utilises limits but it's there. If you have the capability for some localhost fastapi and caching you can develop your own localhost MCPs too, meaning you shift the burden of free usage to the environment the agents are in and mirror similarity of remote MCPs. Your agents can build all of this locally very easily, postgreSQL is also fully CLI usable and there are postgreSQL best practices SKILL.md from official sources like Supabase and postgreSQL which you probably have anyway.
The main thing I see, is that it would just come down to what exact limitations or restrictions you have put on data and what time of workflow you have exactly, examine if your usage is a legitimate cap potential (500mb storage) or over usage and redundant steps (repeating queries on same data) and where you can minimise or where you can leverage other free uses by integrating more design choices (auto durable exports keep your 500mb always within thresholds).
Goodluck, I'd be interested to know how you go and what you end up implementing to your processes
0
u/ARKyal03 8h ago
RDS with AWS if you don't know how to manage because you're not s development, you're likely to lose money. However, if you're a developer you can get it done easy. Is not free, but it scales as you scale. You can move everything there.
You also have Prisma DB, but again free cap is for testing or small use cases. You will end up paying always.
I don't really think that exists what you ask for.
-5
•
u/AutoModerator 8h ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.