How do I keep my general safe in the opening since xiangqi has no castling?
These answers restate the rules implemented by our open-source engine, which follows the WXF laws and is regression-tested against the official 110-diagram repetition casebook. Where an answer refers to a specific position, that position lives on the linked reference page, where the build verifies it against the engine before publishing.
Direct answer
Since xiangqi has no castling move, general safety comes from leaving your advisors and elephants where they start, avoiding actions that open a file straight at your own palace, and simply not moving your general at all unless a rule genuinely forces it. Safety here is a byproduct of good structure, not a single move you play.
Why the defenders should stay put early
Advisors and elephants are already optimally placed to defend the palace and river approaches from their starting squares, so moving them without a clear reason usually weakens your position rather than improving it. This is the opposite instinct from chess, where the king actively relocates for safety; here, the pieces around the general stay still and the general benefits.
What actually creates danger
Trading away too many of your own defenders, letting your central file open while pieces are still undeveloped, or advancing your central soldier carelessly are the common ways beginners expose their own general. Watch for these structural weaknesses rather than looking for a single safety move to play, because none exists.
Related questions
Does this mean the opening is less about king safety than in chess?
It is differently distributed: safety is built in from the start through the palace and defenders rather than achieved by a specific early move.
Is it ever correct to move an advisor early?
Occasionally, to meet a specific threat, but it should be a response to something concrete, not a routine developing move.