Ah, the Winklevoss Gambit.
You currently have a share in the company which you want to sell. Without real revenue the company's value is almost entirely subjective. The right price then is basically what you can convince your partner to pay you for it.
If your partner calls your bluff and is prepared to scuttle the company that could well be $0. If (s)he believes in a bright future for the company it could just as well be $10+k though.
If you ever find yourself using those words when considering an action plan, run in the other direction as fast as you can. There lie antagonistic business practices. Ruining a friendship over a petty startup issues is not worth it. Nor losing your dignity. You're still friends, settle this as friends, each trying to make it beneficial to the other party.
The thing about a startup is that only the investors are really in a position to negotiate cleanly and with a clear head. If you're betting your time and effort, then by definition you're coming to the table with assets that are far more important to you than they will be to anyone else.
From my experience almost all cases where one party wants out and the other wants to continue (not just in tech) involve some amount of cash changing hands.
That amount being zero is just a special case for when very little value was accumulated. In that light giving "just walk away" as the general advice, even though it might be right in this case, is quite overly simplistic in my opinion.
And if your partner is also your friend you should also take that into account of course but from what I could tell the OP didn't mention anything about that.
Saying that the other party may 'call your bluff' implies that you're attempting to cheat them and hoping they won't notice. The word "bluff" is an euphemism for lies and deception. It's used positively in poker because the game rules allow it. But in real life "bluffing", i.e. deceiving and cheating, is frowned upon and often illegal.
The OP seems to have a relationship of trust with their partner and I'm urging him to keep it that way. I also meant it as a general business advice - it's important to keep friendly, trust-based relationships with people. Having to constantly look over your shoulder afraid of your co-founder stabbing you in the back, which is when phrase like "them calling your bluff" makes sense, is a lot of unnecessary trouble.
For me it was basically just a metaphor for negotiating over intangibles; without the apparent connotation of cheating your partner out of something.
I'm not even remotely in this situation and probably never will be, but I'm curious how this can work legally.
Sure copying the code is easy but isn't there the problem that the rights to it (to sell, to use in a different product) are difficult to distribute among several partners.
Wouldn't a potential future buyer of the IP want to make sure that he buys exclusive rights? Otherwise the other partner could just sell the same code to the competition. Same goes for patents etc..
I have no experience with such things so I might missing something very obvious here.
Any business will require substantial investment of a resource to read that code and remake the solution. At that point most of the scaffolding and UX code is redesigned and you have another clone with a different IP. This is different from the old brand but solves the technical problems in many similar ways.
In business it turns out that the UX is the requirement most of the time and the business IP will follow who ever has the same UX. No one really gives a shit about the nuts and bolts of the code unless it's open sourced.
Yes you can.
There might be considerable future value in the work done so far. Neither party wants to give up on that, they both want to work on it, but they can't agree on a direction. So work out between you what all the non-sharable assets (physical things, brand, etc) are worth right now, and draw up an agreement that gives all of that to one party with an agreement to pay the other party the value of it plus something extra if a business is either funded or sold at any time in the future using those things.
Which person gets the assets should default to the person who took on the debt because if that debt is called in they'll need to sell those things to pay it off (the fact it was from a friend is irrelevant).
All the sharable stuff (code, IP, etc) just get cloned and you get a copy each.
Everyone's a winner.