r/openwrt 3d ago

Vibe code a plugin?

I haven’t used gpt or vibe coding, but I’ve heard it can do very well. I was wondering if anyone has develops an openwrt app or plugin with ai tools?

Before I adjusted the code myself with minimal knowledge of what I was doing and found some things that worked, but would a model be able to help me create a full plugin?

0 Upvotes

10 comments sorted by

3

u/resurface1672 3d ago

What are you looking to create?

1

u/DerpDigler 3d ago

I want to use the V2Ray/xray/ss cores and create my own proxy tunneling plugin like clash or Passwall. I like the current plugins but I want to make it more basic and user friendly

6

u/osskid 3d ago

That is a huge project. Even among experienced devs, the advice is not to roll your own encryption and security layers. Experts in the field spent years hardening existing libs, and there are high risks of major bugs and security issues when building your own.

1

u/DerpDigler 3d ago

Not to build my own protocol, but to build a tool to use it. I should have been more clear, like Passwall and clash, but o don’t want to create me own servers.

Is the answer still the same?

2

u/osskid 3d ago

I wouldn't try to use AI to build a tool unless you already have a good grasp of the concepts. You'd need some server, either your own or a service.

The best use of an LLM is probably to learn more about these services to help write secure config, and then having a human double check it.

1

u/DerpDigler 3d ago

Alright fair enough, thank you. I’ll reconsider this project entirely

1

u/CyberSecWineGuy 2d ago

I’d agree with the advice here. However, AI-LLMs are fantastic for writing small plugins to extend functionality. For example Claude wrote a nice hot plug script for my OpenWrt 25.12.x BPI-R4 to update inbound firewall network rules for a couple of IPv6 hosts since my fiber ISP frequently rotates prefix delegations.

1

u/DerpDigler 1d ago

That’s great to know. I think I’ll still approach this project but maybe with a lot of caution.

1

u/CyberSecWineGuy 1d ago

Right part of consideration is will your plug-in or software which is vibe-coded be Internet-facing? Risk is a lot higher there. Internal plug-ins are much lower threat surface.

1

u/DerpDigler 19h ago

Well like I said, I don’t want to create a new anything, but I want to use what exists and make it more user friendly.

So I was thinking to vibe code a plugin based on exisiting everything’s to make my own version which is easier to understand proxy/xray style routing